Ticket #3973: 3973.patch

File 3973.patch, 1.9 KB (added by Garry Yao, 15 years ago)
  • _source/plugins/domiterator/plugin.js

     
    6262                                var lastNode = walker.previous();
    6363                                this._.lastNode = lastNode.getNextSourceNode( true );
    6464
     65                                // We may have an empty text node at the end of block due to [3770].
     66                                // If that node is the lastNode, it would cause our logic to leak to the
     67                                // next block.(#3887)
    6568                                if ( this._.lastNode &&
    6669                                                this._.lastNode.type == CKEDITOR.NODE_TEXT &&
    67                                                 !CKEDITOR.tools.trim( this._.lastNode.getText( ) ) )
     70                                                !CKEDITOR.tools.trim( this._.lastNode.getText( ) ) &&
     71                                                this._.lastNode.getParent().isBlockBoundary() )
    6872                                {
    69                                         // Special case for #3887:
    70                                         // We may have an empty text node at the end of block due to [3770].
    71                                         // If that node is the lastNode, it would cause our logic to leak to the
    72                                         // next block.
    7373                                        var testRange = new CKEDITOR.dom.range( range.document );
    7474                                        testRange.moveToPosition( this._.lastNode, CKEDITOR.POSITION_AFTER_END );
    7575                                        if ( testRange.checkEndOfBlock() )
  • CHANGES.html

     
    145145                <li><a href="http://dev.fckeditor.net/ticket/3951">#3951</a> : Reset size and lock ratio options were not accessible in Image dialog.</li>
    146146                <li><a href="http://dev.fckeditor.net/ticket/3921">#3921</a> : Fixed Container scroll issue on IE7.</li>
    147147                <li><a href="http://dev.fckeditor.net/ticket/3940">#3940</a> : Fixed list operation doesn't stop at table.</li>
     148                <li><a href="http://dev.fckeditor.net/ticket/3973">#3973</a> : Fixed list creation error at the end of document.</li>
    148149        </ul>
    149150        <h3>
    150151                CKEditor 3.0 RC</h3>
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy