Ticket #7087: 7087.patch

File 7087.patch, 944 bytes (added by Garry Yao, 13 years ago)
  • _source/core/dom/walker.js

     
    436436                {
    437437                        return isBookmark( node )
    438438                                        || isWhitespaces( node )
    439                                         || node.type == CKEDITOR.NODE_ELEMENT && node.getName() in CKEDITOR.dtd.$removeEmpty;
     439                                        || node.type == CKEDITOR.NODE_ELEMENT
     440                                        && node.getName() in CKEDITOR.dtd.$inline
     441                                        && !( node.getName() in CKEDITOR.dtd.$empty );
    440442                };
    441443
    442444        // Check if there's a filler node at the end of an element, and return it.
    443445        CKEDITOR.dom.element.prototype.getBogus = function()
    444446        {
    445                 // Bogus are not always at the end, e.g. <p><strong>text<br /></strong></p> (#7070).
     447                // Bogus are not always at the end, e.g. <p><a>text<br /></a></p> (#7070).
    446448                var tail = this;
    447449                do { tail = tail.getPreviousSourceNode(); }
    448450                while ( toSkip( tail ) )
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy