/*  
 * Licensed under the terms of the GNU Lesser General Public License:  
 * 		http://www.opensource.org/licenses/lgpl-license.php  
 *   
 * File Name: toggleFCKeditorInfo_2.2-.js  
 * This file describes the changes between the toggleFCKeditor function for FCKeditor 2.2 and lower and the one for FCKeditor 2.3 and higher  
 * see toggleFCKeditor_2.2-.js and toggleFCKeditor.js (http://www.saulmade.nl/FCKeditor/FCKSnippets.php)  
 *   
 * File Authors:  
 * 		Paul Moers (http://www.saulmade.nl, http://www.saulmade.nl/FCKeditor/FCKPlugins.php)  
 *  
 * Special thanks to Paul York for supporting me!  
*/  
  
  
		// The toolbarset in FCKeditor 2.3 can be disabled simply by the disable method: ToolbarSet.Disable()  
		// for FCKeditor 2.2 and lower we have to disable every toolbar button seperately.  
		// We do this by reading out our toolbarSet Config variable to get the itemNames  
		// And find the actual buttons on the FCKToolbarItems.LoadedItems Object  
  
		for (i = 0; set = editorInstance.Config.ToolbarSets[editorInstance.EditorWindow.parent.FCKToolbarSet.Name][i]; i++)  
		{  
			if (set != "/")  
			{  
				for (j = 0; itemName = set[j]; j++)  
				{  
					if (itemName != "-")  
					{  
						editorInstance.EditorWindow.parent.FCKToolbarItems.LoadedItems[itemName].Disable();  
					}  
				}  
			}  
		}  
  
  
		// Why don't we just use the FCKToolbarItems.LoadedItems, that would be far easier?!  
		// Well, when we would then have plugins activated but not in our toolbarset, the script would throw an error when it reaches the plugin's button...  
		// So don't do :  
  
		for (itemName in editorInstance.EditorWindow.parent.FCKToolbarItems.LoadedItems)  
		{  
			editorInstance.EditorWindow.parent.FCKToolbarItems.LoadedItems[itemName].Disable();  
		}
