-// Removes the current anchor from the document\r
-function RemoveAnchor()\r
-{\r
- // If it's also a link, then just remove the name and exit\r
- if ( oAnchor.href.length != 0 )\r
- {\r
- oAnchor.removeAttribute( 'name' ) ;\r
- // Remove temporary class for IE\r
- if ( FCKBrowserInfo.IsIE )\r
- oAnchor.className = oAnchor.className.replace( FCKRegexLib.FCK_Class, '' ) ;\r
- return ;\r
- }\r
-\r
- // We need to remove the anchor\r
- // If we got a fake image, then just remove it and we're done\r
- if ( oFakeImage )\r
- {\r
- oFakeImage.parentNode.removeChild( oFakeImage ) ;\r
- return ;\r
- }\r
- // Empty anchor, so just remove it\r
- if ( oAnchor.innerHTML.length == 0 )\r
- {\r
- oAnchor.parentNode.removeChild( oAnchor ) ;\r
- return ;\r
- }\r
- // Anchor with content, leave the content\r
- FCKTools.RemoveOuterTags( oAnchor ) ;\r
-}\r
-\r