Opened 8 years ago

Last modified 7 years ago

#13723 confirmed Bug

forceSimpleAmpersand is not working as expected.

Reported by: John Jackson Owned by:
Priority: Normal Milestone:
Component: General Version: 3.0
Keywords: Cc:


Steps to reproduce

  1. Create editor instance with forceSimpleAmpersand = true.
  2. Click the toolbar menu for link.
  3. Add a link ''.
  4. View source - link now written as ''.

Expected result

Link should be ''.

Actual result

Link is ''.

Other details (browser, OS, CKEditor version, installed plugins)

Chrome 45 on Windows 7, CK Editor version 4.5.3.

This may relate to this commit: or possible commits around this that work on similar issues?

Change History (3)

comment:1 Changed 8 years ago by Jakub Ś

Keywords: forceSimpleAmpersand ampersand removed
Status: newconfirmed

I have been able to reproduce this issue in any browser starting from CKEditor 3.0.

Whether I was pasting link into source mode or using Ling dialog, the ampersand was always encoded (getData or switching to source produce & despite config setting)

comment:2 Changed 7 years ago by Jakub Ś

#16802 was marked as duplicate.

comment:3 Changed 7 years ago by Oliver Jusinger

Fix: call htmlEncodeAttr before forceSimpleAmpersand in htmlwriter/plugin.js


> 				attValue = attValue );
< 				attValue = attValue );
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