var WysiwygEditor = Class.create({
 	/**
 	 * Initialize an editor with the specified options
 	 *
 	 * @access public
 	 */
	build: function(options)
 	{
 		// By default, lets receive some callbacks

 		var settings = {
			init_instance_callback: this.editorInitialized
 		}

 		Object.extend(settings, options);

 		tinyMCE.init(settings);
 	},

 	/**
 	 * Called when an editor has been initialized
 	 *
 	 * @access public
 	 */
 	editorInitialized: function(editor)
 	{
 		if (editor != undefined)
 		{
 			// Look for all elements inside what seems to be an editor popup

 			$$(".mceToolbarContainer > *").each(function(element) {

 				// Disable its tab index

 				element.tabIndex = -1;
 			});
 		}
 	}
});

WysiwygEditor = new WysiwygEditor();