Ticket #5668: 5668.patch

File 5668.patch, 615 bytes (added by garry.yao, 5 years ago)
  • editor/_source/internals/fckxhtml.js

     
    147147
    148148FCKXHtml._AppendChildNodes = function( xmlNode, htmlNode, isBlockElement )
    149149{
    150         var oNode = htmlNode.firstChild ;
     150        // Sometimes IE DOM doesn't report the first child node even
     151        // if there's a single one exist, e.g. <span><p>text</p></span>.
     152        var oNode = htmlNode.firstChild || htmlNode.childNodes.length && htmlNode.lastChild;
    151153
    152154        while ( oNode )
    153155        {
© 2003 – 2015 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy