Ticket #3880: 3880.patch
File 3880.patch, 1.6 KB (added by , 15 years ago) |
---|
-
editor/_source/classes/fckdomrange_ie.js
77 77 FCKDomRange.prototype.SelectBookmark = function( bookmark, forceExpand ) 78 78 { 79 79 var bIsCollapsed = this.CheckIsCollapsed() ; 80 var bIsStartMa kerAlone ;80 var bIsStartMarkerAlone ; 81 81 var dummySpan ; 82 82 83 83 // Create marker tags for the start and end boundaries. … … 111 111 } 112 112 else 113 113 { 114 bIsStartMa kerAlone = ( forceExpand || !eStartMarker.previousSibling || eStartMarker.previousSibling.nodeName.toLowerCase() == 'br' ) && !eStartMarker.nextSibing;114 bIsStartMarkerAlone = forceExpand || !eStartMarker.previousSibling || eStartMarker.previousSibling.nodeName.toLowerCase() == 'br'; 115 115 116 116 // Append a temporary <span></span> before the selection. 117 117 // This is needed to avoid IE destroying selections inside empty … … 122 122 dummySpan.innerHTML = '' ; // Zero Width No-Break Space (U+FEFF). See #1359. 123 123 eStartMarker.parentNode.insertBefore( dummySpan, eStartMarker ) ; 124 124 125 if ( bIsStartMa kerAlone )125 if ( bIsStartMarkerAlone ) 126 126 { 127 127 // To expand empty blocks or line spaces after <br>, we need 128 128 // instead to have any char, which will be later deleted using the … … 141 141 142 142 if ( bIsCollapsed ) 143 143 { 144 if ( bIsStartMa kerAlone )144 if ( bIsStartMarkerAlone ) 145 145 { 146 146 // Move the selection start to include the temporary . 147 147 oIERange.moveStart( 'character', -1 ) ;