Index: /FCKeditor/trunk/_whatsnew.html
===================================================================
--- /FCKeditor/trunk/_whatsnew.html (revision 217)
+++ /FCKeditor/trunk/_whatsnew.html (revision 218)
@@ -119,4 +119,6 @@
[#254] The IgnoreEmptyParagraphValue
setting is now correctly handled in Firefox.
+ [#248] The behavior
+ of the backspace key has been fixed on some very specific cases.
Index: /FCKeditor/trunk/editor/_source/classes/fckenterkey.js
===================================================================
--- /FCKeditor/trunk/editor/_source/classes/fckenterkey.js (revision 217)
+++ /FCKeditor/trunk/editor/_source/classes/fckenterkey.js (revision 218)
@@ -127,5 +127,4 @@
return false ;
-
var oStartBlock = oRange.StartBlock ;
var oEndBlock = oRange.EndBlock ;
@@ -203,9 +202,10 @@
return true ;
}
-
+
// Take a reference to the parent for post processing cleanup.
var oCurrentParent = currentBlock.parentNode ;
- if ( previous.nodeName.IEquals( 'TABLE', 'HR' ) )
+ var sPreviousName = previous.nodeName.toLowerCase() ;
+ if ( FCKListsLib.EmptyElements[ sPreviousName ] != null || sPreviousName == 'table' )
{
FCKDomTools.RemoveNode( previous ) ;
@@ -541,5 +541,5 @@
// Recreate the elements tree at the end of the source block, at the beginning
-// of the target block. Eg.:
+// of the target block. Eg.:
// If source =
Some sample text
then target =
// If source = Some sample text
then target =
@@ -556,5 +556,5 @@
FCKListHandler.OutdentListItem( li ) ;
-
+
range.MoveToBookmark( oBookmark ) ;
range.Select() ;