[svn r17371] FS#2867 - FCKEditor: Restricting the Image map dialog not to be activated on fake images. Disabling some obsolete code from Image map plugin.

skala
Ivan Tcholakov 16 years ago
parent 3ed0d7e7a7
commit 5dd1744c68
  1. 15
      main/inc/lib/fckeditor/editor/plugins/imgmap/fckplugin.js

@ -44,9 +44,14 @@ FCKToolbarItems.RegisterItem('imgmapPopup', imgmapButton);
FCK.ContextMenu.RegisterListener({
AddItems : function( menu, tag, tagName ) {
// under what circumstances do we display this option
if (tagName == 'IMG') {
if ( tagName == 'IMG' &&
!tag.getAttribute( '_fckfakelement' ) &&
!tag.getAttribute( '_fckflash' ) &&
!tag.getAttribute( '_fckmp3' ) &&
!tag.getAttribute( '_fckvideo' ) )
{
// when the option is displayed, show a separator the command
menu.AddSeparator();
//menu.AddSeparator();
// the command needs the registered command name, the title for the context menu, and the icon path
menu.AddItem('imgmapPopup', FCKLang.imgmapDlgTitle, imgmapButton.IconPath);
}
@ -54,6 +59,9 @@ 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 )
{
@ -105,4 +113,5 @@ if ( !FCKRegexLib.ProtectUrlsArea )
return html ;
}
}
}
*/

Loading…
Cancel
Save