Opened 13 years ago

Last modified 13 years ago

#8905 closed Bug

CKEDITOR.htmlWriter giving unexpected results — at Version 1

Reported by: Lynne Kues Owned by:
Priority: Normal Milestone:
Component: General Version: 3.6.2
Keywords: IBM Cc:

Description (last modified by Jakub Ś)

var writer = new CKEDITOR.htmlWriter();
var contents = '<div>'  
+ '<p id="_1334328943223">'
+ '<span class="showContent com-ibm-rdm-editor-EmbeddedResourceDecorator embeddedContentLoadRequired">'
+     '<a id="_1334328943227" class="embedded" href="https://bmweb.com:9443/rm/resources/_hi0cpYPdEeGKpePNjL95TQ">'
+        '<u>  </u>'
+      '</a>'
+    '</span>'
+  '</p>'
+  '<span>  </span>'
+ '<p id="_1334328943224"/>'
+  '<p id="_1334328943225">'
+   '<span class="showContent com-ibm-rdm-editor-EmbeddedResourceDecorator embeddedContentLoadRequired">'
+      '<a id="_1334328943228" class="embedded" href="https://bmweb.com:9443/rm/resources/_hi0cpYPdEeGKpePNjLZZZ">'
+        '<u> </u>'
+      '</a>'
+    '</span>'
+  '</p>'
+  '<span> </span>'
+  '<p id="_1334328943226"/>'
+ '</div>';
var frag = CKEDITOR.htmlParser.fragment.fromHtml(contents);
frag.writeHtml(writer);
console.log("CONTENTS " + writer.getHtml());

Executing the above gives the following result, which is unexpected as it removes data (seen on FF10 and IE9:

CONTENTS 
<div> 
<p id="_1334328943223"> </p> 
<p id="_1334328943224"> </p> 
<p id="_1334328943225"> </p> 
<p id="_1334328943226"> </p> 
</div>

Change History (1)

comment:1 Changed 13 years ago by Jakub Ś

Description: modified (diff)
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