#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"><a data-cke-saved-href="http://www.example.com" href="http://www.example.com">Example</a></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
Resolution: | → invalid |
---|---|
Status: | new → closed |
Version: | 4.5.1 |
comment:2 Changed 9 years ago by
Thank you for your time. I was not aware that tags within iframe were invalid.
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