From 2cbd97d472b2871d916362241938690d6072684f Mon Sep 17 00:00:00 2001 From: Ivan Tcholakov Date: Thu, 12 Feb 2009 21:42:55 +0100 Subject: [PATCH] [svn r18475] FS#2867 - FCKEditor, the imgmap plugin: Deletion of commented obsolete code. --- .../editor/plugins/imgmap/fckplugin.js | 58 ------------------- 1 file changed, 58 deletions(-) diff --git a/main/inc/lib/fckeditor/editor/plugins/imgmap/fckplugin.js b/main/inc/lib/fckeditor/editor/plugins/imgmap/fckplugin.js index 831579a102..cb8cd22f09 100644 --- a/main/inc/lib/fckeditor/editor/plugins/imgmap/fckplugin.js +++ b/main/inc/lib/fckeditor/editor/plugins/imgmap/fckplugin.js @@ -62,61 +62,3 @@ FCK.ContextMenu.RegisterListener({ } } }); - - -/* -// Removed by Ivan Tcholakov, 18-DEC-2008. - -// The code has been added in FCKeditor 2.5, so we only need it here for previous versions. -if ( !FCKRegexLib.ProtectUrlsArea ) -{ - if ( FCKBrowserInfo.IsIE ) - { - // Fix behavior for IE, it doesn't read back the .name on newly created maps - FCKXHtml.TagProcessors['map'] = function( node, htmlNode ) - { - if ( ! node.attributes.getNamedItem( 'name' ) ) - { - var name = htmlNode.name ; - if ( name ) - FCKXHtml._AppendAttribute( node, 'name', name ) ; - } - - node = FCKXHtml._AppendChildNodes( node, htmlNode, true ) ; - - return node ; - } - } - - // The href in the areas might get distorted by the browser. - - // Keep a reference to the default processsor: - var imgmap_OldAreaProcessor = FCKXHtml.TagProcessors['area'] ; - - FCKXHtml.TagProcessors['area'] = function( node, htmlNode ) - { - var sSavedUrl = htmlNode.getAttribute( '_fcksavedurl' ) ; - if ( sSavedUrl != null ) - FCKXHtml._AppendAttribute( node, 'href', sSavedUrl ) ; - - // Call the default processor - if (typeof imgmap_OldAreaProcessor == 'function') - node = imgmap_OldAreaProcessor ( node, htmlNode ) ; - - return node ; - } - - // Saves URLs on links and images on special attributes, so they don't change when - // moving around. - var imgmap_OldProtectUrls = FCK.ProtectUrls ; - FCK.ProtectUrls = function( html ) - { - html = imgmap_OldProtectUrls( html ) ; - - // href - html = html.replace( /]+))/gi , '$& _fcksavedurl=$1' ) ; - - return html ; - } -} -*/