[svn r18485] FS#2867: FCKEditor: Supressing the error message "Unknown toolbar item "xxxxxxxxx" when some plugin is not loaded, but its button has been declared in some of the toolbars. This aims plugins to be turned off by wish, without causing problems.

skala
Ivan Tcholakov 16 years ago
parent 59c6c2e55d
commit 621fef6ce6
  1. 4
      main/inc/lib/fckeditor/editor/plugins/customizations/fckplugin.js

@ -544,7 +544,9 @@ FCKToolbarItems.GetItem = function( itemName )
case 'ShowBlocks' : oItem = new FCKToolbarButton( 'ShowBlocks' , FCKLang.ShowBlocks, null, null, null, true, 72 ) ; break ;
default:
alert( FCKLang.UnknownToolbarItem.replace( /%1/g, itemName ) ) ;
// Customization: We want to suppress this alarm in order to be
// able to turn off plugins without need to modify defined toolbars.
//alert( FCKLang.UnknownToolbarItem.replace( /%1/g, itemName ) ) ;
return null ;
}

Loading…
Cancel
Save