I'm trying to install the Switchtoolbar plugin and am getting an alert: Unknown toolbar item "Switchtoolbar." I've followed the readme and am not sure what to try next.
My menu (the basic one only, the full menu is similar):
FCKConfig.ToolbarSets["Basic"] = [ ['Save','Switchtoolbar','Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink','-','About'] ] ;
My plugin section of fckconfig.js:
//---------------------------------------------------- // Switchtoolbar plugin FCKConfig.Plugins.Add('Switchtoolbar', 'en,ru,uk'); // *** The Switchtoolbar cycle toolbars. These are not checked, so // * if you specify an invalid toolbar, the editor will crash FCKConfig.SwitchtoolbarCycle = ['Default','Basic'];
The setup section in Switchtoolbar's fckplugin.js:
// Register the related command. // RegisterCommand takes the following arguments: CommandName, DialogCommand FCKCommands.RegisterCommand( 'Switchtoolbar', new FCKCommand_Switchtoolbar() ) ; // Create the toolbar button. // FCKToolbarButton takes the following arguments: CommandName, Button Caption var oSwitchtoolbarItem = new FCKToolbarButton( 'Switchtoolbar', FCKLang.SwitchtoolbarBtn ) ; oSwitchtoolbarItem.IconPath = FCKPlugins.Items['Switchtoolbar'].Path + 'Switchtoolbar.gif' ; FCKToolbarItems.RegisterItem( 'Switchtoolbar', oSwitchtoolbarItem ) ;
If anyone can help me out I'd greatly appreciate it.
Re: Trouble with plugin (Switchtoolbar)
So in the file /editor/fckeditor/fckconfig.js I changed these 2 lines to exactly "AutoPreview":
- FCKConfig.Plugins.Add( 'AutoPreview', 'en,nl' ) ;
- the menu item ['AutoPreview']
Also edit the name of folder in /editor/fckeditor/plugins/ and the .gif file in that folder
Now I finally got my menu item showing on the toolbar.
Hopefully this solution will help you too.