Changeset 1090
- Timestamp:
- 2007-11-19 09:41:48 (9 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/trunk/editor/_source/classes/fckdomrangeiterator.js
r991 r1090 266 266 removePreviousBr = !splitInfo.WasStartOfBlock ; 267 267 removeLastBr = !splitInfo.WasEndOfBlock ; 268 FCKDebug.Output( 'removePreviousBr=' + removePreviousBr + ',removeLastBr=' + removeLastBr ) ; 268 269 269 270 // Insert the new block into the DOM. … … 286 287 { 287 288 var previousSibling = block.previousSibling ; 288 if ( previousSibling && previousSibling.nodeType == 1 && previousSibling.nodeName.toLowerCase() == 'br' ) 289 previousSibling.parentNode.removeChild( previousSibling ) ; 289 if ( previousSibling && previousSibling.nodeType == 1 ) 290 { 291 if ( previousSibling.nodeName.toLowerCase() == 'br' ) 292 previousSibling.parentNode.removeChild( previousSibling ) ; 293 else if ( previousSibling.lastChild && previousSibling.lastChild.nodeName.IEquals( 'br' ) ) 294 previousSibling.removeChild( previousSibling.lastChild ) ; 295 } 290 296 } 291 297