Index: FCKeditor/trunk/_whatsnew.html
===================================================================
--- FCKeditor/trunk/_whatsnew.html (revision 1985)
+++ FCKeditor/trunk/_whatsnew.html (revision 1996)
@@ -89,4 +89,6 @@
[#2184] Fixed several validation
errors in the File Browser.
+ [#1383] Fixed an IE issue where
+ pressing backspace may merge a hyperlink on the previous line with the text on the current line.
Index: FCKeditor/trunk/editor/_source/classes/fckenterkey.js
===================================================================
--- FCKeditor/trunk/editor/_source/classes/fckenterkey.js (revision 1985)
+++ FCKeditor/trunk/editor/_source/classes/fckenterkey.js (revision 1996)
@@ -169,4 +169,26 @@
}
+ // On IE, it is better for us handle the deletion if the caret is preceeded
+ // by a
(#1383).
+ if ( FCKBrowserInfo.IsIE )
+ {
+ var previousElement = FCKDomTools.GetPreviousSourceElement( oRange.StartNode, true ) ;
+
+ if ( previousElement && previousElement.nodeName.toLowerCase() == 'br' )
+ {
+ // Create a range that starts after the
and ends at the
+ // current range position.
+ var testRange = oRange.Clone() ;
+ testRange.SetStart( previousElement, 4 ) ;
+
+ // If that range is empty, we can proceed cleaning that
manually.
+ if ( testRange.CheckIsEmpty() )
+ {
+ previousElement.parentNode.removeChild( previousElement ) ;
+ return true ;
+ }
+ }
+ }
+
var oStartBlock = oRange.StartBlock ;
var oEndBlock = oRange.EndBlock ;