Index: /FCKeditor/branches/features/anchors/editor/_source/internals/fcktools.js
===================================================================
--- /FCKeditor/branches/features/anchors/editor/_source/internals/fcktools.js	(revision 26)
+++ /FCKeditor/branches/features/anchors/editor/_source/internals/fcktools.js	(revision 27)
@@ -4,5 +4,4 @@
 </FileDescription>
 <Author name="Frederico Caldeira Knabben" email="www.fckeditor.net" />
-<Author name="Alfonso Martinez de Lizarrondo - Uritec" email="alfonso at uritec dot net" />
 */
 
@@ -196,18 +195,2 @@
 }
 
-// Remove a temporary class from a node according to a regExp
-FCKTools.RemoveClass = function( node, regX )
-{
-	var oClassAtt = node.attributes.getNamedItem( 'class' ) ;
-
-	if ( oClassAtt && regX.test( oClassAtt.nodeValue ) )
-	{
-		var sClass = oClassAtt.nodeValue.replace( regX, '' ) ;
-
-		if ( sClass.length == 0 )
-			node.attributes.removeNamedItem( 'class' ) ;
-		else
-			oClassAtt.nodeValue = sClass ;
-	}
-}
-
Index: /FCKeditor/branches/features/anchors/editor/_source/internals/fckxhtml.js
===================================================================
--- /FCKeditor/branches/features/anchors/editor/_source/internals/fckxhtml.js	(revision 26)
+++ /FCKeditor/branches/features/anchors/editor/_source/internals/fckxhtml.js	(revision 27)
@@ -276,4 +276,20 @@
 }
 
+// Remove part of an attribute from a node according to a regExp
+FCKXHtml._RemoveAttribute = function( xmlNode, regX, sAttribute )
+{
+	var oAtt = xmlNode.attributes.getNamedItem( sAttribute ) ;
+
+	if ( oAtt && regX.test( oAtt.nodeValue ) )
+	{
+		var sValue = oAtt.nodeValue.replace( regX, '' ) ;
+
+		if ( sValue.length == 0 )
+			xmlNode.attributes.removeNamedItem( sAttribute ) ;
+		else
+			oAtt.nodeValue = sValue ;
+	}
+}
+
 // An object that hold tag specific operations.
 FCKXHtml.TagProcessors =
@@ -302,5 +318,5 @@
 		if ( FCKBrowserInfo.IsIE )
 		{
-			FCKTools.RemoveClass( node, FCKRegexLib.FCK_Class ) ;
+			FCKXHtml._RemoveAttribute( node, FCKRegexLib.FCK_Class, 'class' ) ;
 
 			// Buggy IE, doesn't copy the name of changed anchors.
@@ -353,7 +369,5 @@
 
 		if ( FCKBrowserInfo.IsIE )
-		{
-			FCKTools.RemoveClass( node, FCKRegexLib.FCK_Class ) ;
-		}
+			FCKXHtml._RemoveAttribute( node, FCKRegexLib.FCK_Class, 'class' ) ;
 
 		FCKXHtml._AppendChildNodes( node, htmlNode, false ) ;
