Index: /CKEditor/trunk/CHANGES.html
===================================================================
--- /CKEditor/trunk/CHANGES.html	(revision 3950)
+++ /CKEditor/trunk/CHANGES.html	(revision 3951)
@@ -165,4 +165,5 @@
 		<li><a href="http://dev.fckeditor.net/ticket/3988">#3988</a> : Destroy editor on form submit event cause error.</li>
 		<li><a href="http://dev.fckeditor.net/ticket/3994">#3994</a> : Insert horizontal line at end of document cause error.</li>
+		<li><a href="http://dev.fckeditor.net/ticket/4057">#4057</a> : Fixed anchor is lost after switch between editing modes.</li>
 	</ul>
 	<h3>
Index: /CKEditor/trunk/_source/plugins/htmldataprocessor/plugin.js
===================================================================
--- /CKEditor/trunk/_source/plugins/htmldataprocessor/plugin.js	(revision 3950)
+++ /CKEditor/trunk/_source/plugins/htmldataprocessor/plugin.js	(revision 3951)
@@ -150,6 +150,10 @@
 				a : function( element )
 				{
-					if ( !( element.children.length || element.attributes.name ) )
+					if ( !( element.children.length ||
+							element.attributes.name ||
+							element.attributes._cke_saved_name ) )
+					{
 						return false;
+					}
 				}
 			},
