Ticket #4450: 4450_3.patch
File 4450_3.patch, 1.5 KB (added by , 13 years ago) |
---|
-
_source/plugins/domiterator/plugin.js
25 25 this.enforceRealBlocks = false; 26 26 27 27 this._ || ( this._ = {} ); 28 }, 29 beginWhitespaceRegex = /^[\r\n\t ]+$/; 28 }; 30 29 30 var beginWhitespaceRegex = /^[\r\n\t ]+$/, 31 isBookmark = CKEDITOR.dom.walker.bookmark(); 31 32 32 33 iterator.prototype = { 33 34 getNextParagraph : function( blockTag ) … … 211 212 // loop. 212 213 if ( ( closeRange || isLast ) && range ) 213 214 { 214 var boundaryNodes = range.getBoundaryNodes(), 215 startPath = new CKEDITOR.dom.elementPath( range.startContainer ), 216 endPath = new CKEDITOR.dom.elementPath( range.endContainer ); 215 var boundaryNodes = range.getBoundaryNodes(); 217 216 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' ) ) 217 // Drop the range if it only contains bookmark nodes, and is 218 // not because of the original collapsed range. (#4087,#4450) 219 if ( !this.range.collapsed 220 && isBookmark( boundaryNodes.startNode ) && isBookmark( boundaryNodes.endNode ) ) 223 221 { 224 222 range = null; 225 223 this._.nextNode = null;