Opened 9 years ago

Closed 9 years ago

Last modified 9 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:

Description

When entering the following text in source view:

<iframe src="http://www.example.com"><a href="http://www.example.com">Example</a></iframe>

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

<p><iframe src="http://www.example.com">&lt;a data-cke-saved-href=&quot;http://www.example.com&quot; href=&quot;http://www.example.com&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 9 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 http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-getData method.

You can't put any tags inside iframe. Only character data is allowed (no < or >). Please see http://www.w3.org/TR/html-markup/iframe.html#iframe

comment:2 Changed 9 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