Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#13558 closed Bug (invalid)

HTML entered in source view is garbled when switching out of source view

Reported by: Jamie Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: Cc:


When entering the following text in source view:

<iframe src=""><a href="">Example</a></iframe>

It is transformed into this when switching out of source view:

<p><iframe src="">&lt;a data-cke-saved-href=&quot;; href=&quot;;&gt;Example&lt;/a&gt;</iframe></p>

Note the escaped HTML entities and the data-cke-saved text for example.

Have reproduced on demo site and nightly demo site in Chrome 43.0.2357.134 m and in ckeditor versions 4.4.7 and 4.3.1

Change History (2)

comment:1 Changed 8 years ago by Jakub Ś

Resolution: invalid
Status: newclosed
Version: 4.5.1

This is custom CKEditor attribute. This is how editor works and there is no bug here. You can get clean data with!/api/CKEDITOR.editor-method-getData method.

You can't put any tags inside iframe. Only character data is allowed (no < or >). Please see

comment:2 Changed 8 years ago by Jamie

Thank you for your time. I was not aware that tags within iframe were invalid.

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