Ticket #1519: 1519_PartialFix.patch
File 1519_PartialFix.patch, 1000 bytes (added by , 16 years ago) |
---|
-
editor/_source/classes/fckdomrangeiterator.js
85 85 this._NextNode = range.GetTouchedStartNode() ; 86 86 this._LastNode = range.GetTouchedEndNode() ; 87 87 88 this._IsFirst = true ; 89 88 90 // Let's reuse this variable. 89 91 range = null ; 90 92 } 93 else 94 this._IsFirst = false ; 91 95 92 96 var currentNode = this._NextNode ; 93 97 var lastNode = this._LastNode ; … … 216 220 && range.StartNode.getAttribute && range.StartNode.getAttribute( '_fck_bookmark' ) ) 217 221 range = null ; 218 222 else 223 { 224 if ( isLast && !this._IsFirst ) 225 { 226 var testRange = range.Clone() ; 227 testRange.SetEnd( lastNode, 4 ) ; 228 if ( testRange.CheckIsEmpty() ) 229 range = null ; 230 } 219 231 break ; 232 } 220 233 } 221 234 222 235 if ( isLast )