Ticket #1383: 1383_2.patch
File 1383_2.patch, 1.7 KB (added by , 16 years ago) |
---|
-
_whatsnew.html
71 71 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2125">#2125</a>] Fixed the issue that 72 72 FCK.InsertHtml() doesn't insert contents at the caret position when dialogs are opened in IE. 73 73 </li> 74 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1383">#1383</a>] Fixed an IE issue where 75 pressing backspace may merge a hyperlink on the previous line with the text on the current line.</li> 74 76 </ul> 75 77 <h3> 76 78 Version 2.6</h3> -
editor/_source/classes/fckenterkey.js
168 168 return false ; 169 169 } 170 170 171 // On IE, it is better for us handle the deletion if the caret is preceeded 172 // by a <br> (#1383). 173 if ( FCKBrowserInfo.IsIE ) 174 { 175 var previousElement = FCKDomTools.GetPreviousSourceElement( oRange.StartNode, true ) ; 176 177 if ( previousElement && previousElement.nodeName.toLowerCase() == 'br' ) 178 { 179 // Create a range that starts after the <br> and ends at the 180 // current range position. 181 var testRange = oRange.Clone() ; 182 testRange.SetStart( previousElement, 4 ) ; 183 184 // If that range is empty, we can proceed cleaning that <br> manually. 185 if ( testRange.CheckIsEmpty() ) 186 { 187 previousElement.parentNode.removeChild( previousElement ) ; 188 return true ; 189 } 190 } 191 } 192 171 193 var oStartBlock = oRange.StartBlock ; 172 194 var oEndBlock = oRange.EndBlock ; 173 195