Ticket #1717: 1717.patch
File 1717.patch, 2.0 KB (added by , 15 years ago) |
---|
-
_whatsnew.html
71 71 is now enforced only when ForcePasteAsPlainText = true.</li> 72 72 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1336">#1336</a>] Sometimes 73 73 the autogrow plugin didn't work properly in Firefox.</li> 74 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1717">#1717</a>] The editor 75 was entering on looping on some specific cases when dealing with invalid source 76 markup.</li> 74 77 </ul> 75 78 <p> 76 79 <a href="_whatsnew_history.html">See previous versions history</a> -
editor/_source/classes/fckdomrangeiterator.js
92 92 var currentNode = this._NextNode ; 93 93 var lastNode = this._LastNode ; 94 94 95 this._NextNode = null ; 96 95 97 while ( currentNode ) 96 98 { 97 99 // closeRange indicates that a paragraph boundary has been found, … … 128 130 // The range must finish right before the boundary, 129 131 // including possibly skipped empty spaces. (#1603) 130 132 if ( range ) 133 { 131 134 range.SetEnd( currentNode, 3, true ) ; 132 135 136 // The found boundary must be set as the next one at this 137 // point. (#1717) 138 if ( nodeName != 'br' ) 139 this._NextNode = currentNode ; 140 } 141 133 142 closeRange = true ; 134 143 } 135 144 else … … 310 319 // Get a reference for the next element. This is important because the 311 320 // above block can be removed or changed, so we can rely on it for the 312 321 // next interation. 313 this._NextNode = ( isLast || block == lastNode ) ? null : FCKDomTools.GetNextSourceNode( block, true, null, lastNode ) ; 322 if ( !this._NextNode ) 323 this._NextNode = ( isLast || block == lastNode ) ? null : FCKDomTools.GetNextSourceNode( block, true, null, lastNode ) ; 314 324 315 325 return block ; 316 326 }