YUI ruins network share links

Kobax - October 9, 2008 - 23:01
Project:YUI Rich Text Editor
Version:6.x-2.0
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

On a website hosted on an internal network, we use links to a network share using href="//computername/sharename". YUI appends http:// to the front of this, rendering the links useless.

#1

Nick Lewis - October 13, 2008 - 23:20

Seems like this may be an intentional behavior in the editor's javascript. It also doesn't allow you to enter in anything that looks like XSS attempt.

#2

jeffcd - October 14, 2008 - 06:05

Yeah this is an internal YUI Editor behavior. If anyone can look through the docs and find an override for this I will be happy to update the code with a new feature. Patch also welcome.

#3

kirkhings - July 13, 2009 - 21:15

It would be nice if YUI developers could make a little checkbox to denote 'this is local internal link, do not prepend http://'

Until then, use the automagic link wizard like normal.

Then enter plaintext/html code editing view and manually delete the 'http://' from your link's href. Be sure to exit the code view before saving or it will lose your changes.

Silly but critical.

 
 

Drupal is a registered trademark of Dries Buytaert.