Opened 17 years ago

Closed 17 years ago

#314 closed Bug (invalid)

javascript inside html

Reported by: Dmitry Uspensky Owned by:
Priority: Normal Milestone:
Component: UI : Source View Version: FCKeditor 2.4
Keywords: Pending Cc:

Description

1) switch editor to source mode, enter the following code: <p><a onclick="doSomething(&rsquo;xxx&rsquo;);" href="http://www.fckeditor.net/">FCKeditor</a></p>

2)switch to WYSIWYG mode and back to source mode. Code gets converted as follows: <p><a onclick="doSomething(&amp;apos;rsquo;xxx&amp;apos;rsquo;);" href="http://www.fckeditor.net/">FCKeditor</a></p>

if you keep switching back and forth from one mode to another &amp;apos; will be multiplied

Change History (2)

comment:1 Changed 17 years ago by Alfonso Martínez de Lizarrondo

Keywords: Pending added; rsquo apos removed
Milestone: FCKeditor 2.4.2

That code is invalid javascript and you'll get an error if you try to use it. It should be:

<p><a onclick="doSomething('xxx');" href="http://www.fckeditor.net/">FCKeditor</a></p>

comment:2 Changed 17 years ago by Alfonso Martínez de Lizarrondo

Resolution: invalid
Status: newclosed

Resolving as expired

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy