Ticket #4450: 4450.patch

File 4450.patch, 1.1 KB (added by Garry Yao, 14 years ago)
  • _source/plugins/domiterator/plugin.js

     
    215215                                                startPath = new CKEDITOR.dom.elementPath( range.startContainer ),
    216216                                                endPath = new CKEDITOR.dom.elementPath( range.endContainer );
    217217
    218                                         // Drop the range if it only contains bookmark nodes.(#4087)
    219                                         if ( boundaryNodes.startNode.equals( boundaryNodes.endNode )
    220                                                 && boundaryNodes.startNode.getParent().equals( startPath.blockLimit )
    221                                                 && boundaryNodes.startNode.type == CKEDITOR.NODE_ELEMENT
    222                                                 && boundaryNodes.startNode.getAttribute( '_fck_bookmark' ) )
     218                                        // Drop the range if it only contains bookmark nodes.(#4087,#4450)
     219                                        if ( boundaryNodes.startNode.getParent().equals( startPath.blockLimit )
     220                                                 && boundaryNodes.startNode.is && boundaryNodes.startNode.getAttribute( '_fck_bookmark' )
     221                                                 && boundaryNodes.endNode.is && boundaryNodes.startNode.getAttribute( '_fck_bookmark' ) )
    223222                                        {
    224223                                                range = null;
    225224                                                this._.nextNode = null;
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy