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 )
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>