Index: /FCKeditor/trunk/editor/_source/internals/fckdomtools.js
===================================================================
--- /FCKeditor/trunk/editor/_source/internals/fckdomtools.js	(revision 891)
+++ /FCKeditor/trunk/editor/_source/internals/fckdomtools.js	(revision 892)
@@ -704,9 +704,19 @@
 						currentListItem = doc.createDocumentFragment() ;
 				}
-				item.grandparent.appendChild( currentListItem )  ;
 				for ( var i = 0 ; i < item.contents.length ; i++ )
 					currentListItem.appendChild( item.contents[i].cloneNode( true ) ) ;
 				if ( currentListItem.nodeType == 11 )
 					currentListItem.appendChild( doc.createElement( 'br' ) ) ;
+				if ( currentListItem.nodeName.IEquals( FCKConfig.EnterMode ) && currentListItem.firstChild )
+				{
+					this.TrimNode( currentListItem ) ;
+					if ( FCKListsLib.BlockBoundaries[currentListItem.firstChild.nodeName.toLowerCase()] )
+					{
+						var tmp = doc.createDocumentFragment() ;
+						while ( currentListItem.firstChild )
+							tmp.appendChild( currentListItem.removeChild( currentListItem.firstChild ) ) ;
+						currentListItem = tmp ;
+					}
+				}
 				retval.appendChild( currentListItem ) ;
 				rootNode = null ;
