[svn r18475] FS#2867 - FCKEditor, the imgmap plugin: Deletion of commented obsolete code.

skala
Ivan Tcholakov 16 years ago
parent ddf40248ed
commit 2cbd97d472
  1. 58
      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 ) ;
// <AREA> href
html = html.replace( /<area(?=\s).*?\shref=((?:(?:\s*)("|').*?\2)|(?:[^"'][^ >]+))/gi , '$& _fcksavedurl=$1' ) ;
return html ;
}
}
*/

Loading…
Cancel
Save