Index: /FCKeditor/trunk/_whatsnew.html
===================================================================
--- /FCKeditor/trunk/_whatsnew.html	(revision 1218)
+++ /FCKeditor/trunk/_whatsnew.html	(revision 1219)
@@ -62,4 +62,6 @@
 		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1603">#1603</a>] Certain
 			specific markup was making FCKeditor entering in a loop, blocking its execution.</li>
+		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1664">#1664</a>] The ENTER
+			key will not any more swap the order of the tags when hit at the end of paragraphs.</li>
 	</ul>
 	<p>
Index: /FCKeditor/trunk/editor/_source/classes/fckenterkey.js
===================================================================
--- /FCKeditor/trunk/editor/_source/classes/fckenterkey.js	(revision 1218)
+++ /FCKeditor/trunk/editor/_source/classes/fckenterkey.js	(revision 1219)
@@ -462,5 +462,4 @@
 			if ( elementPath )
 			{
-				var eFocusElement = eNewBlock ;
 				for ( var i = 0, len = elementPath.Elements.length ; i < len ; i++ )
 				{
@@ -469,7 +468,11 @@
 					if ( element == elementPath.Block || element == elementPath.BlockLimit )
 						break ;
-
+					
 					if ( FCKListsLib.InlineChildReqElements[ element.nodeName.toLowerCase() ] )
-						eFocusElement = eFocusElement.appendChild( FCKDomTools.CloneElement( element ) ) ;
+					{
+						element = FCKDomTools.CloneElement( element ) ;
+						FCKDomTools.MoveChildren( eNewBlock, element ) ;
+						eNewBlock.appendChild( element ) ;
+					}
 				}
 			}
Index: /FCKeditor/trunk/editor/_source/internals/fckdomtools.js
===================================================================
--- /FCKeditor/trunk/editor/_source/internals/fckdomtools.js	(revision 1218)
+++ /FCKeditor/trunk/editor/_source/internals/fckdomtools.js	(revision 1219)
@@ -24,4 +24,7 @@
 var FCKDomTools =
 {
+	/**
+	 * Move all child nodes from one node to another.
+	 */
 	MoveChildren : function( source, target, toTargetStart )
 	{
@@ -979,2 +982,3 @@
 } ;
 
+
