Ticket #4786: 4786.patch

File 4786.patch, 881 bytes (added by Frederico Caldeira Knabben, 13 years ago)
  • _source/plugins/domiterator/plugin.js

     
    212212                                // loop.
    213213                                if ( ( closeRange || isLast ) && range )
    214214                                {
    215                                         var boundaryNodes = range.getBoundaryNodes();
     215                                        var boundaryNodes = range.getBoundaryNodes(),
     216                                                startPath = new CKEDITOR.dom.elementPath( range.startContainer );
    216217
    217218                                        // Drop the range if it only contains bookmark nodes, and is
    218219                                        // not because of the original collapsed range. (#4087,#4450)
    219                                         if ( !this.range.collapsed
     220                                        if ( boundaryNodes.startNode.getParent().equals( startPath.blockLimit )
    220221                                                 && isBookmark( boundaryNodes.startNode ) && isBookmark( boundaryNodes.endNode ) )
    221222                                        {
    222223                                                range = null;
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy