<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<model>
<namespace fullname="tinymce" name="tinymce">
<class fullname="tinymce.AddOnManager" name="AddOnManager" summary="This class handles the loading of themes/plugins or other add-ons and their language packs.">
<description>This class handles the loading of themes/plugins or other add-ons and their language packs.
</description>
<members>
<event name="onAdd" summary="Fires when a item is added.">
<description>Fires when a item is added.
</description>
</event>
<method name="get" summary="Returns the specified add on by the short name.">
<description>Returns the specified add on by the short name.
</description>
<param name="n" type="String">
<description>Add-on to look for.</description>
</param>
<return>
<type fullname="tinymce.Theme"/>
<type fullname="tinymce.Plugin"/>
<description>Theme or plugin add-on instance or undefined.</description>
</return>
</method>
<method name="requireLangPack" summary="Loads a language pack for the specified add-on.">
<description>Loads a language pack for the specified add-on.
</description>
<param name="n" type="String">
<description>Short name of the add-on.</description>
</param>
</method>
<method name="add" summary="Adds a instance of the add-on by it's short name.">
<description>Adds a instance of the add-on by it's short name.
</description>
<param name="id" type="String">
<description>Short name/id for the add-on.</description>
</param>
<param name="o">
<type fullname="tinymce.Theme"/>
<type fullname="tinymce.Plugin"/>
<description>Theme or plugin to add.</description>
</param>
<return>
<type fullname="tinymce.Theme"/>
<type fullname="tinymce.Plugin"/>
<description>The same theme or plugin instance that got passed in.</description>
</return>
</method>
<method name="load" summary="Loads an add-on from a specific url.">
<description>Loads an add-on from a specific url.
</description>
<param name="n" type="String">
<description>Short name of the add-on that gets loaded.</description>
</param>
<param name="u" type="String">
<description>URL to the add-on that will get loaded.</description>
</param>
<param name="cb" type="function">
<description>Optional callback to execute ones the add-on is loaded.</description>
</param>
<param name="s" type="Object">
<description>Optional scope to execute the callback in.</description>
</param>
</method>
</members>
</class>
<class fullname="tinymce.Theme" name="Theme" summary="TinyMCE theme class.">
<description>TinyMCE theme class.
</description>
</class>
<class fullname="tinymce.Plugin" name="Plugin" summary="TinyMCE plugin class.">
<description>TinyMCE plugin class.
</description>
</class>
<class fullname="tinymce.ControlManager" name="ControlManager" summary="This class is responsible for managing UI control instances.">
<description>This class is responsible for managing UI control instances. It's both a factory and a collection for the controls.</description>
<members>
<method constructor="true" name="ControlManager" summary="Constructs a new control manager instance.">
<description>Constructs a new control manager instance.
Consult the Wiki for more details on this class.
</description>
<param name="ed" type="tinymce.Editor">
<description>TinyMCE editor instance to add the control to.</description>
</param>
<param name="s" type="Object">
<description>Optional settings object for the control manager.</description>
</param>
</method>
<method name="get" summary="Returns a control by id or undefined it it wasn't found.">
<description>Returns a control by id or undefined it it wasn't found.
</description>
<param name="id" type="String">
<description>Control instance name.</description>
</param>
<return type="tinymce.ui.Control">
<description>Control instance or undefined.</description>
</return>
</method>
<method name="setActive" summary="Sets the active state of a control by id.">
<description>Sets the active state of a control by id.
</description>
<param name="id" type="String">
<description>Control id to set state on.</description>
</param>
<param name="s" type="Boolean">
<description>Active state true/false.</description>
</param>
<return type="tinymce.ui.Control">
<description>Control instance that got activated or null if it wasn't found.</description>
</return>
</method>
<method name="setDisabled" summary="Sets the dsiabled state of a control by id.">
<description>Sets the dsiabled state of a control by id.
</description>
<param name="id" type="String">
<description>Control id to set state on.</description>
</param>
<param name="s" type="Boolean">
<description>Active state true/false.</description>
</param>
<return type="tinymce.ui.Control">
<description>Control instance that got disabled or null if it wasn't found.</description>
</return>
</method>
<method name="add" summary="Adds a control to the control collection inside the manager.">
<description>Adds a control to the control collection inside the manager.
</description>
<param name="Control" type="tinymce.ui.Control">
<description>instance to add to collection.</description>
</param>
<return type="tinymce.ui.Control">
<description>Control instance that got passed in.</description>
</return>
</method>
<method name="createControl" summary="Creates a control by name, when a control is created it will automatically add it to the control collection.">
<description>Creates a control by name, when a control is created it will automatically add it to the control collection.
It first ask all plugins for the specified control if the plugins didn't return a control then the default behavior
will be used.
</description>
<param name="n" type="String">
<description>Control name to create for example "separator".</description>
</param>
<return type="tinymce.ui.Control">
<description>Control instance that got created and added.</description>
</return>
</method>
<method name="createDropMenu" summary="Creates a drop menu control instance by id.">
<description>Creates a drop menu control instance by id.
</description>
<param name="id" type="String">
<description>Unique id for the new dropdown instance. For example "some menu".</description>
</param>
<param name="s" type="Object">
<description>Optional settings object for the control.</description>
</param>
<param name="cc" type="Object">
<description>Optional control class to use instead of the default one.</description>
</param>
<return type="tinymce.ui.Control">
<description>Control instance that got created and added.</description>
</return>
</method>
<method name="createListBox" summary="Creates a list box control instance by id.">
<description>Creates a list box control instance by id. A list box is either a native select element or a DOM/JS based list box control. This
depends on the use_native_selects settings state.
</description>
<param name="id" type="String">
<description>Unique id for the new listbox instance. For example "styles".</description>
</param>
<param name="s" type="Object">
<description>Optional settings object for the control.</description>
</param>
<param name="cc" type="Object">
<description>Optional control class to use instead of the default one.</description>
</param>
<return type="tinymce.ui.Control">
<description>Control instance that got created and added.</description>
</return>
</method>
<method name="createButton" summary="Creates a button control instance by id.">
<description>Creates a button control instance by id.
</description>
<param name="id" type="String">
<description>Unique id for the new button instance. For example "bold".</description>
</param>
<param name="s" type="Object">
<description>Optional settings object for the control.</description>
</param>
<param name="cc" type="Object">
<description>Optional control class to use instead of the default one.</description>
</param>
<return type="tinymce.ui.Control">
<description>Control instance that got created and added.</description>
</return>
</method>
<method name="createMenuButton" summary="Creates a menu button control instance by id.">
<description>Creates a menu button control instance by id.
</description>
<param name="id" type="String">
<description>Unique id for the new menu button instance. For example "menu1".</description>
</param>
<param name="s" type="Object">
<description>Optional settings object for the control.</description>
</param>
<param name="cc" type="Object">
<description>Optional control class to use instead of the default one.</description>
</param>
<return type="tinymce.ui.Control">
<description>Control instance that got created and added.</description>
</return>
</method>
<method name="createSplitButton" summary="Creates a split button control instance by id.">
<description>Creates a split button control instance by id.
</description>
<param name="id" type="String">
<description>Unique id for the new split button instance. For example "spellchecker".</description>
</param>
<param name="s" type="Object">
<description>Optional settings object for the control.</description>
</param>
<param name="cc" type="Object">
<description>Optional control class to use instead of the default one.</description>
</param>
<return type="tinymce.ui.Control">
<description>Control instance that got created and added.</description>
</return>
</method>
<method name="createColorSplitButton" summary="Creates a color split button control instance by id.">
<description>Creates a color split button control instance by id.
</description>
<param name="id" type="String">
<description>Unique id for the new color split button instance. For example "forecolor".</description>
</param>
<param name="s" type="Object">
<description>Optional settings object for the control.</description>
</param>
<param name="cc" type="Object">
<description>Optional control class to use instead of the default one.</description>
</param>
<return type="tinymce.ui.Control">
<description>Control instance that got created and added.</description>
</return>
</method>
<method name="createToolbar" summary="Creates a toolbar container control instance by id.">
<description>Creates a toolbar container control instance by id.
</description>
<param name="id" type="String">
<description>Unique id for the new toolbar container control instance. For example "toolbar1".</description>
</param>
<param name="s" type="Object">
<description>Optional settings object for the control.</description>
</param>
<param name="cc" type="Object">
<description>Optional control class to use instead of the default one.</description>
</param>
<return type="tinymce.ui.Control">
<description>Control instance that got created and added.</description>
</return>
</method>
<method name="createSeparator" summary="Creates a separator control instance.">
<description>Creates a separator control instance.
</description>
<param name="cc" type="Object">
<description>Optional control class to use instead of the default one.</description>
</param>
<return type="tinymce.ui.Control">
<description>Control instance that got created and added.</description>
</return>
</method>
<method name="setControlType" summary="Overrides a specific control type with a custom class.">
<description>Overrides a specific control type with a custom class.
</description>
<param name="n" type="string">
<description>Name of the control to override for example button or dropmenu.</description>
</param>
<param name="c" type="function">
<description>Class reference to use instead of the default one.</description>
</param>
<return type="function">
<description>Same as the class reference.</description>
</return>
</method>
<method name="destroy" summary="Destroy.">
<description>Destroy.
</description>
</method>
</members>
</class>
<class author="Moxiecode" fullname="tinymce.Editor" name="Editor" summary="This class contains the core logic for a TinyMCE editor.">
<description>This class contains the core logic for a TinyMCE editor.
</description>
<example>
<example>// Add a class to all paragraphs in the editor.
tinyMCE.activeEditor.dom.addClass(tinyMCE.activeEditor.dom.select('p'), 'someclass');

// Gets the current editors selection as text
tinyMCE.activeEditor.selection.getContent({format : 'text'});

// Creates a new editor instance
var ed = new tinymce.Editor('textareaid', {
    some_setting : 1
});

// Select each item the user clicks on
ed.onClick.add(function(ed, e) {
    ed.selection.select(e.target);
});

ed.render();</example>
</example>
<members>
<method author="Moxiecode" constructor="true" name="Editor" summary="Constructs a editor instance by id.">
<description>Constructs a editor instance by id.
</description>
<param name="id" type="String">
<description>Unique id for the editor.</description>
</param>
<param name="s" type="Object">
<description>Optional settings string for the editor.</description>
</param>
</method>
<property name="id" summary="Editor instance id, normally the same as the div/textarea that was replaced." type="String">
<description>Editor instance id, normally the same as the div/textarea that was replaced.
</description>
</property>
<property name="isNotDirty" summary="State to force the editor to return false on a isDirty call." type="Boolean">
<description>State to force the editor to return false on a isDirty call.
</description>
</property>
<property name="plugins" summary="Name/Value object containting plugin instances." type="Object">
<description>Name/Value object containting plugin instances.
</description>
</property>
<event name="onPreInit" summary="Fires before the initialization of the editor.">
<description>Fires before the initialization of the editor.
</description>
<param name="sender" type="tinymce.Editor">
<description>Editor instance.</description>
</param>
<see member="onInit"/>
</event>
<event name="onBeforeRenderUI" summary="Fires before the initialization of the editor.">
<description>Fires before the initialization of the editor.
</description>
<param name="sender" type="tinymce.Editor">
<description>Editor instance.</description>
</param>
</event>
<event name="onPostRender" summary="Fires after the rendering has completed.">
<description>Fires after the rendering has completed.
</description>
<param name="sender" type="tinymce.Editor">
<description>Editor instance.</description>
</param>
</event>
<event name="onInit" summary="Fires after the initialization of the editor is done.">
<description>Fires after the initialization of the editor is done.
</description>
<param name="sender" type="tinymce.Editor">
<description>Editor instance.</description>
</param>
<see member="onPreInit"/>
</event>
<event name="onRemove" summary="Fires when the editor instance is removed from page.">
<description>Fires when the editor instance is removed from page.
</description>
<param name="sender" type="tinymce.Editor">
<description>Editor instance.</description>
</param>
</event>
<event name="onActivate" summary="Fires when the editor is activated.">
<description>Fires when the editor is activated.
</description>
<param name="sender" type="tinymce.Editor">
<description>Editor instance.</description>
</param>
</event>
<event name="onDeactivate" summary="Fires when the editor is deactivated.">
<description>Fires when the editor is deactivated.
</description>
<param name="sender" type="tinymce.Editor">
<description>Editor instance.</description>
</param>
</event>
<event name="onClick" summary="Fires when something in the body of the editor is clicked.">
<description>Fires when something in the body of the editor is clicked.
</description>
<param name="sender" type="tinymce.Editor">
<description>Editor instance.</description>
</param>
<param name="evt" type="Event">
<description>W3C DOM Event instance.</description>
</param>
</event>
<event name="onEvent" summary="Fires when a registered event is intercepted.">
<description>Fires when a registered event is intercepted.
</description>
<param name="sender" type="tinymce.Editor">
<description>Editor instance.</description>
</param>
<param name="evt" type="Event">
<description>W3C DOM Event instance.</description>
</param>
</event>
<event name="onMouseUp" summary="Fires when a mouseup event is intercepted inside the editor.">
<description>Fires when a mouseup event is intercepted inside the editor.
</description>
<param name="sender" type="tinymce.Editor">
<description>Editor instance.</description>
</param>
<param name="evt" type="Event">
<description>W3C DOM Event instance.</description>
</param>
</event>
<event name="onMouseDown" summary="Fires when a mousedown event is intercepted inside the editor.">
<description>Fires when a mousedown event is intercepted inside the editor.
</description>
<param name="sender" type="tinymce.Editor">
<description>Editor instance.</description>
</param>
<param name="evt" type="Event">
<description>W3C DOM Event instance.</description>
</param>
</event>
<event name="onDblClick" summary="Fires when a dblclick event is intercepted inside the editor.">
<description>Fires when a dblclick event is intercepted inside the editor.
</description>
<param name="sender" type="tinymce.Editor">
<description>Editor instance.</description>
</param>
<param name="evt" type="Event">
<description>W3C DOM Event instance.</description>
</param>
</event>
<event name="onKeyDown" summary="Fires when a keydown event is intercepted inside the editor.">
<description>Fires when a keydown event is intercepted inside the editor.
</description>
<param name="sender" type="tinymce.Editor">
<description>Editor instance.</description>
</param>
<param name="evt" type="Event">
<description>W3C DOM Event instance.</description>
</param>
</event>
<event name="onKeyUp" summary="Fires when a keydown event is intercepted inside the editor.">
<description>Fires when a keydown event is intercepted inside the editor.
</description>
<param name="sender" type="tinymce.Editor">
<description>Editor instance.</description>
</param>
<param name="evt" type="Event">
<description>W3C DOM Event instance.</description>
</param>
</event>
<event name="onKeyPress" summary="Fires when a keypress event is intercepted inside the editor.">
<description>Fires when a keypress event is intercepted inside the editor.
</description>
<param name="sender" type="tinymce.Editor">
<description>Editor instance.</description>
</param>
<param name="evt" type="Event">
<description>W3C DOM Event instance.</description>
</param>
</event>
<event name="onContextMenu" summary="Fires when a contextmenu event is intercepted inside the editor.">
<description>Fires when a contextmenu event is intercepted inside the editor.
</description>
<param name="sender" type="tinymce.Editor">
<description>Editor instance.</description>
</param>
<param name="evt" type="Event">
<description>W3C DOM Event instance.</description>
</param>
</event>
<event name="onSubmit" summary="Fires when a form submit event is intercepted.">
<description>Fires when a form submit event is intercepted.
</description>
<param name="sender" type="tinymce.Editor">
<description>Editor instance.</description>
</param>
<param name="evt" type="Event">
<description>W3C DOM Event instance.</description>
</param>
</event>
<event name="onReset" summary="Fires when a form reset event is intercepted.">
<description>Fires when a form reset event is intercepted.
</description>
<param name="sender" type="tinymce.Editor">
<description>Editor instance.</description>
</param>
<param name="evt" type="Event">
<description>W3C DOM Event instance.</description>
</param>
</event>
<event name="onPaste" summary="Fires when a paste event is intercepted inside the editor.">
<description>Fires when a paste event is intercepted inside the editor.
</description>
<param name="sender" type="tinymce.Editor">
<description>Editor instance.</description>
</param>
<param name="evt" type="Event">
<description>W3C DOM Event instance.</description>
</param>
</event>
<event name="onPreProcess" summary="Fires when the Serializer does a preProcess on the contents.">
<description>Fires when the Serializer does a preProcess on the contents.
</description>
<param name="sender" type="tinymce.Editor">
<description>Editor instance.</description>
</param>
<param name="obj" type="Object">
<description>PreProcess object.</description>
</param>
</event>
<event name="onPostProcess" summary="Fires when the Serializer does a postProcess on the contents.">
<description>Fires when the Serializer does a postProcess on the contents.
</description>
<param name="sender" type="tinymce.Editor">
<description>Editor instance.</description>
</param>
<param name="obj" type="Object">
<description>PreProcess object.</description>
</param>
</event>
<event name="onBeforeSetContent" summary="Fires before new contents is added to the editor.">
<description>Fires before new contents is added to the editor. Using for example setContent.
</description>
<param name="sender" type="tinymce.Editor">
<description>Editor instance.</description>
</param>
</event>
<event name="onBeforeGetContent" summary="Fires before contents is extracted from the editor using for example getContent.">
<description>Fires before contents is extracted from the editor using for example getContent.
</description>
<param name="sender" type="tinymce.Editor">
<description>Editor instance.</description>
</param>
<param name="evt" type="Event">
<description>W3C DOM Event instance.</description>
</param>
</event>
<event name="onSetContent" summary="Fires after the contents has been added to the editor using for example onSetContent.">
<description>Fires after the contents has been added to the editor using for example onSetContent.
</description>
<param name="sender" type="tinymce.Editor">
<description>Editor instance.</description>
</param>
</event>
<event name="onGetContent" summary="Fires after the contents has been extracted from the editor using for example getContent.">
<description>Fires after the contents has been extracted from the editor using for example getContent.
</description>
<param name="sender" type="tinymce.Editor">
<description>Editor instance.</description>
</param>
</event>
<event name="onLoadContent" summary="Fires when the editor gets loaded with contents for example when the load method is executed.">
<description>Fires when the editor gets loaded with contents for example when the load method is executed.
</description>
<param name="sender" type="tinymce.Editor">
<description>Editor instance.</description>
</param>
</event>
<event name="onSaveContent" summary="Fires when the editor contents gets saved for example when the save method is executed.">
<description>Fires when the editor contents gets saved for example when the save method is executed.
</description>
<param name="sender" type="tinymce.Editor">
<description>Editor instance.</description>
</param>
</event>
<event name="onNodeChange" summary="Fires when the user changes node location using the mouse or keyboard.">
<description>Fires when the user changes node location using the mouse or keyboard.
</description>
<param name="sender" type="tinymce.Editor">
<description>Editor instance.</description>
</param>
</event>
<event name="onChange" summary="Fires when a new undo level is added to the editor.">
<description>Fires when a new undo level is added to the editor.
</description>
<param name="sender" type="tinymce.Editor">
<description>Editor instance.</description>
</param>
</event>
<event name="onBeforeExecCommand" summary="Fires before a command gets executed for example &quot;Bold&quot;.">
<description>Fires before a command gets executed for example "Bold".
</description>
<param name="sender" type="tinymce.Editor">
<description>Editor instance.</description>
</param>
</event>
<event name="onExecCommand" summary="Fires after a command is executed for example &quot;Bold&quot;.">
<description>Fires after a command is executed for example "Bold".
</description>
<param name="sender" type="tinymce.Editor">
<description>Editor instance.</description>
</param>
</event>
<event name="onUndo" summary="Fires when the contents is undo:ed.">
<description>Fires when the contents is undo:ed.
</description>
<param name="sender" type="tinymce.Editor">
<description>Editor instance.</description>
</param>
<param name="evt" type="Event">
<description>W3C DOM Event instance.</description>
</param>
</event>
<event name="onRedo" summary="Fires when the contents is redo:ed.">
<description>Fires when the contents is redo:ed.
</description>
<param name="sender" type="tinymce.Editor">
<description>Editor instance.</description>
</param>
<param name="evt" type="Event">
<description>W3C DOM Event instance.</description>
</param>
</event>
<event name="onVisualAid" summary="Fires when visual aids is enabled/disabled.">
<description>Fires when visual aids is enabled/disabled.
</description>
<param name="sender" type="tinymce.Editor">
<description>Editor instance.</description>
</param>
</event>
<event name="onSetProgressState" summary="Fires when the progress throbber is shown above the editor.">
<description>Fires when the progress throbber is shown above the editor.
</description>
<param name="sender" type="tinymce.Editor">
<description>Editor instance.</description>
</param>
</event>
<property name="settings" summary="Name/value collection with editor settings." type="Object">
<description>Name/value collection with editor settings.
</description>
</property>
<property name="documentBaseURI" summary="URI object to document configured for the TinyMCE instance." type="tinymce.util.URI">
<description>URI object to document configured for the TinyMCE instance.
</description>
</property>
<property name="baseURI" summary="URI object to current document that holds the TinyMCE editor instance." type="tinymce.util.URI">
<description>URI object to current document that holds the TinyMCE editor instance.
</description>
</property>
<method name="render" summary="Renderes the editor/adds it to the page.">
<description>Renderes the editor/adds it to the page.
</description>
</method>
<property name="windowManager" summary="Window manager reference, use this to open new windows and dialogs." type="tinymce.WindowManager">
<description>Window manager reference, use this to open new windows and dialogs.
</description>
</property>
<method name="init" summary="Initializes the editor this will be called automatically when all plugins/themes and language packs are loaded by the re...">
<description>Initializes the editor this will be called automatically when
all plugins/themes and language packs are loaded by the rendered method.
This method will setup the iframe and create the theme and plugin instances.
</description>
</method>
<property name="theme" summary="Reference to the theme instance that was used to generate the UI." type="tinymce.Theme">
<description>Reference to the theme instance that was used to generate the UI.
</description>
</property>
<property name="controlManager" summary="Control manager instance for the editor." type="tinymce.ControlManager">
<description>Control manager instance for the editor. Will enables you to create new UI elements and change their states etc.
</description>
</property>
<property name="undoManager" summary="Undo manager instance, responsible for handling undo levels." type="tinymce.UndoManager">
<description>Undo manager instance, responsible for handling undo levels.
</description>
</property>
<method name="setupIframe" summary="This method get called by the init method ones the iframe is loaded.">
<description>This method get called by the init method ones the iframe is loaded.
It will fill the iframe with contents, setups DOM and selection objects for the iframe.
This method should not be called directly.
</description>
</method>
<property name="dom" summary="DOM instance for the editor." type="tinymce.dom.DOMUtils">
<description>DOM instance for the editor.
</description>
</property>
<property name="serializer" summary="DOM serializer for the editor." type="tinymce.dom.Serializer">
<description>DOM serializer for the editor.
</description>
</property>
<property name="selection" summary="Selection instance for the editor." type="tinymce.dom.Selection">
<description>Selection instance for the editor.
</description>
</property>
<method name="setupContentEditable" summary="Sets up the contentEditable mode.">
<description>Sets up the contentEditable mode.
</description>
</method>
<method name="focus" summary="Focuses/activates the editor.">
<description>Focuses/activates the editor. This will set this editor as the activeEditor in the EditorManager
it will also place DOM focus inside the editor.
</description>
<param name="sf" type="Boolean">
<description>Skip DOM focus. Just set is as the active editor.</description>
</param>
</method>
<method name="execCallback" summary="Executes a legacy callback.">
<description>Executes a legacy callback. This method is useful to call old 2.x option callbacks.
There new event model is a better way to add callback so this method might be removed in the future.
</description>
<param name="n" type="String">
<description>Name of the callback to execute.</description>
</param>
<return type="Object">
<description>Return value passed from callback function.</description>
</return>
</method>
<method name="translate" summary="Translates the specified string by replacing variables with language pack items it will also check if there is a key mat...">
<description>Translates the specified string by replacing variables with language pack items it will also check if there is
a key mathcin the input.
</description>
<param name="s" type="String">
<description>String to translate by the language pack data.</description>
</param>
<return type="String">
<description>Translated string.</description>
</return>
</method>
<method name="getLang" summary="Returns a language pack item by name/key.">
<description>Returns a language pack item by name/key.
</description>
<param name="n" type="String">
<description>Name/key to get from the language pack.</description>
</param>
<param name="dv" type="String">
<description>Optional default value to retrive.</description>
</param>
</method>
<method name="getParam" summary="Returns a configuration parameter by name.">
<description>Returns a configuration parameter by name.
</description>
<param name="n" type="String">
<description>Configruation parameter to retrive.</description>
</param>
<param name="dv" type="String">
<description>Optional default value to return.</description>
</param>
<param name="ty" type="String">
<description>Optional type parameter.</description>
</param>
<return type="String">
<description>Configuration parameter value or default value.</description>
</return>
</method>
<method name="nodeChanged" summary="Distpaches out a onNodeChange event to all observers.">
<description>Distpaches out a onNodeChange event to all observers. This method should be called when you
need to update the UI states or element path etc.
</description>
<param name="o" type="Object">
<description>Optional object to pass along for the node changed event.</description>
</param>
</method>
<method name="addButton" summary="Adds a button that later gets created by the ControlManager.">
<description>Adds a button that later gets created by the ControlManager. This is a shorter and easier method
of adding buttons without the need to deal with the ControlManager directly. But it's also less
powerfull if you need more control use the ControlManagers factory methods instead.
</description>
<param name="n" type="String">
<description>Button name to add.</description>
</param>
<param name="s" type="Object">
<description>Settings object with title, cmd etc.</description>
</param>
</method>
<method name="addCommand" summary="Adds a custom command to the editor, you can also override existing commands with this method.">
<description>Adds a custom command to the editor, you can also override existing commands with this method.
The command that you add can be executed with execCommand.
</description>
<param name="n" type="String">
<description>Command name to add/override.</description>
</param>
<param name="f" type="function">
<description>Function to execute when the command occurs.</description>
</param>
<param name="s" type="Object">
<description>Optional scope to execute the function in.</description>
</param>
</method>
<method name="addQueryStateHandler" summary="Adds a custom query state command to the editor, you can also override existing commands with this method.">
<description>Adds a custom query state command to the editor, you can also override existing commands with this method.
The command that you add can be executed with queryCommandState function.
</description>
<param name="n" type="String">
<description>Command name to add/override.</description>
</param>
<param name="f" type="function">
<description>Function to execute when the command state retrival occurs.</description>
</param>
<param name="s" type="Object">
<description>Optional scope to execute the function in.</description>
</param>
</method>
<method name="addQueryValueHandler" summary="Adds a custom query value command to the editor, you can also override existing commands with this method.">
<description>Adds a custom query value command to the editor, you can also override existing commands with this method.
The command that you add can be executed with queryCommandValue function.
</description>
<param name="n" type="String">
<description>Command name to add/override.</description>
</param>
<param name="f" type="function">
<description>Function to execute when the command value retrival occurs.</description>
</param>
<param name="s" type="Object">
<description>Optional scope to execute the function in.</description>
</param>
</method>
<method name="addShortcut" summary="Adds a keyboard shortcut for some command or function.">
<description>Adds a keyboard shortcut for some command or function.
</description>
<param name="pa" type="String">
<description>Shortcut pattern. Like for example: ctrl+alt+o.</description>
</param>
<param name="desc" type="String">
<description>Text description for the command.</description>
</param>
<param name="cmd_func">
<type fullname="String"/>
<type fullname="Function"/>
<description>Command name string or function to execute when the key is pressed.</description>
</param>
<param name="sc" type="Object">
<description>Optional scope to execute the function in.</description>
</param>
<return type="Boolean">
<description>true/false state if the shortcut was added or not.</description>
</return>
</method>
<method name="execCommand" summary="Executes a command on the current instance.">
<description>Executes a command on the current instance. These commands can be TinyMCE internal commands prefixed with "mce" or
they can be build in browser commands such as "Bold". A compleate list of browser commands is available on MSDN or Mozilla.org.
This function will dispatch the execCommand function on each plugin, theme or the execcommand_callback option if none of these
return true it will handle the command as a internal browser command.
</description>
<param name="cmd" type="String">
<description>Command name to execute, for example mceLink or Bold.</description>
</param>
<param name="ui" type="Boolean">
<description>True/false state if a UI (dialog) should be presented or not.</description>
</param>
<param name="val" type="mixed">
<description>Optional command value, this can be anything.</description>
</param>
<param name="a" type="Object">
<description>Optional arguments object.</description>
</param>
<return type="Boolean">
<description>True/false if the command was executed or not.</description>
</return>
</method>
<method name="queryCommandState" summary="Returns a command specific state, for example if bold is enabled or not.">
<description>Returns a command specific state, for example if bold is enabled or not.
</description>
<param name="c" type="string">
<description>Command to query state from.</description>
</param>
<return type="Boolean">
<description>Command specific state, for example if bold is enabled or not.</description>
</return>
</method>
<method name="queryCommandValue" summary="Returns a command specific value, for example the current font size.">
<description>Returns a command specific value, for example the current font size.
</description>
<param name="c" type="string">
<description>Command to query value from.</description>
</param>
<return type="Object">
<description>Command specific value, for example the current font size.</description>
</return>
</method>
<method name="show" summary="Shows the editor and hides any textarea/div that the editor is supposed to replace.">
<description>Shows the editor and hides any textarea/div that the editor is supposed to replace.
</description>
</method>
<method name="hide" summary="Hides the editor and shows any textarea/div that the editor is supposed to replace.">
<description>Hides the editor and shows any textarea/div that the editor is supposed to replace.
</description>
</method>
<method name="isHidden" summary="Returns true/false if the editor is hidden or not.">
<description>Returns true/false if the editor is hidden or not.
</description>
<return type="Boolean">
<description>True/false if the editor is hidden or not.</description>
</return>
</method>
<method name="setProgressState" summary="Sets the progress state, this will display a throbber/progess for the editor.">
<description>Sets the progress state, this will display a throbber/progess for the editor.
This is ideal for asycronous operations like an AJAX save call.
</description>
<param name="b" type="Boolean">
<description>Boolean state if the progress should be shown or hidden.</description>
</param>
<param name="ti" type="Number">
<description>Optional time to wait before the progress gets shown.</description>
</param>
<param name="o" type="Object">
<description>Optional object to pass to the progress observers.</description>
</param>
<return type="Boolean">
<description>Same as the input state.</description>
</return>
</method>
<method name="load" summary="Loads contents from the textarea or div element that got converted into an editor instance.">
<description>Loads contents from the textarea or div element that got converted into an editor instance.
This method will move the contents from that textarea or div into the editor by using setContent
so all events etc that method has will get dispatched as well.
</description>
<param name="o" type="Object">
<description>Optional content object, this gets passed around through the whole load process.</description>
</param>
<return type="String">
<description>HTML string that got set into the editor.</description>
</return>
</method>
<method name="save" summary="Saves the contents from a editor out to the textarea or div element that got converted into an editor instance.">
<description>Saves the contents from a editor out to the textarea or div element that got converted into an editor instance.
This method will move the HTML contents from the editor into that textarea or div by getContent
so all events etc that method has will get dispatched as well.
</description>
<param name="o" type="Object">
<description>Optional content object, this gets passed around through the whole save process.</description>
</param>
<return type="String">
<description>HTML string that got set into the textarea/div.</description>
</return>
</method>
<method name="setContent" summary="Sets the specified content to the editor instance, this will cleanup the content before it gets set using the different ...">
<description>Sets the specified content to the editor instance, this will cleanup the content before it gets set using
the different cleanup rules options.
</description>
<param name="h" type="String">
<description>Content to set to editor, normally HTML contents but can be other formats as well.</description>
</param>
<param name="o" type="Object">
<description>Optional content object, this gets passed around through the whole set process.</description>
</param>
<return type="String">
<description>HTML string that got set into the editor.</description>
</return>
</method>
<method name="getContent" summary="Gets the content from the editor instance, this will cleanup the content before it gets returned using the different cle...">
<description>Gets the content from the editor instance, this will cleanup the content before it gets returned using
the different cleanup rules options.
</description>
<param name="o" type="Object">
<description>Optional content object, this gets passed around through the whole get process.</description>
</param>
<return type="String">
<description>Cleaned content string, normally HTML contents.</description>
</return>
</method>
<method name="isDirty" summary="Returns true/false if the editor is dirty or not.">
<description>Returns true/false if the editor is dirty or not. It will get dirty if the user has made modifications to the contents.
</description>
<return type="Boolean">
<description>True/false if the editor is dirty or not. It will get dirty if the user has made modifications to the contents.</description>
</return>
</method>
<method name="getContainer" summary="Returns the editors container element.">
<description>Returns the editors container element. The container element wrappes in
all the elements added to the page for the editor. Such as UI, iframe etc.
</description>
<return type="Element">
<description>HTML DOM element for the editor container.</description>
</return>
</method>
<method name="getContentAreaContainer" summary="Returns the editors content area container element.">
<description>Returns the editors content area container element. The this element is the one who
holds the iframe or the editable element.
</description>
<return type="Element">
<description>HTML DOM element for the editor area container.</description>
</return>
</method>
<method name="getElement" summary="Returns the target element/textarea that got replaced with a TinyMCE editor instance.">
<description>Returns the target element/textarea that got replaced with a TinyMCE editor instance.
</description>
<return type="Element">
<description>HTML DOM element for the replaced element.</description>
</return>
</method>
<method name="getWin" summary="Returns the iframes window object.">
<description>Returns the iframes window object.
</description>
<return type="Window">
<description>Iframe DOM window object.</description>
</return>
</method>
<method name="getDoc" summary="Returns the iframes document object.">
<description>Returns the iframes document object.
</description>
<return type="Document">
<description>Iframe DOM document object.</description>
</return>
</method>
<method name="getBody" summary="Returns the iframes body element.">
<description>Returns the iframes body element.
</description>
<return type="Element">
<description>Iframe body element.</description>
</return>
</method>
<method name="convertURL" summary="URL converter function this gets executed each time a user adds an img, a or any other element that has a URL in it.">
<description>URL converter function this gets executed each time a user adds an img, a or
any other element that has a URL in it. This will be called both by the DOM and HTML
manipulation functions.
</description>
<param name="u" type="string">
<description>URL to convert.</description>
</param>
<param name="n" type="string">
<description>Attribute name src, href etc.</description>
</param>
<param name="Tag">
<type fullname="string"/>
<type fullname="HTMLElement"/>
<description>name or HTML DOM element depending on HTML or DOM insert.</description>
</param>
<return type="string">
<description>Converted URL string.</description>
</return>
</method>
<method name="addVisual" summary="Adds visual aid for tables, anchors etc so they can be more easily edited inside the editor.">
<description>Adds visual aid for tables, anchors etc so they can be more easily edited inside the editor.
</description>
<param name="e" type="Element">
<description>Optional root element to loop though to find tables etc that needs the visual aid.</description>
</param>
</method>
<method name="remove" summary="Removes the editor from the dom and EditorManager collection.">
<description>Removes the editor from the dom and EditorManager collection.
</description>
</method>
<method name="destroy" summary="Destroys the editor instance by removing all events, element references or other resources that could leak memory.">
<description>Destroys the editor instance by removing all events, element references or other resources
that could leak memory. This method will be called automatically when the page is unloaded
but you can also call it directly if you know what you are doing.
</description>
<param name="s" type="Boolean">
<description>Optional state if the destroy is an automatic destroy or user called one.</description>
</param>
</method>
</members>
</class>
<class fullname="tinymce.EditorManager" name="EditorManager" static="true" summary="This class is used to create multiple editor instances and contain them in a collection.">
<description>This class is used to create multiple editor instances and contain them in a collection. So it's both a factory and a manager for editor instances.
</description>
<members>
<property name="editors" static="true" summary="Collection of editor instances." type="Object">
<description>Collection of editor instances.
</description>
</property>
<property name="activeEditor" static="true" summary="Currently active editor instance." type="tinymce.Editor">
<description>Currently active editor instance.
</description>
</property>
<method name="preInit" static="true" summary="Preinitializes the EditorManager class.">
<description>Preinitializes the EditorManager class. This method will be called automatically when the page loads and it
will setup some important paths and URIs and attach some document events.
</description>
</method>
<method name="init" static="true" summary="Initializes a set of editors.">
<description>Initializes a set of editors. This method will create a bunch of editors based in the input.
</description>
<param name="s" type="Object">
<description>Settings object to be passed to each editor instance.</description>
</param>
</method>
<method name="get" static="true" summary="Returns a editor instance by id.">
<description>Returns a editor instance by id.
</description>
<param name="id" type="String">
<description>Editor instance id to return.</description>
</param>
<return type="tinymce.Editor">
<description>Editor instance to return.</description>
</return>
</method>
<method deprecated="Use get method instead." name="getInstanceById" static="true" summary="Returns a editor instance by id.">
<description>Returns a editor instance by id. This method was added for compatibility with the 2.x branch.
</description>
<param name="id" type="String">
<description>Editor instance id to return.</description>
</param>
<return type="tinymce.Editor">
<description>Editor instance to return.</description>
</return>
<see member="get"/>
</method>
<method name="add" static="true" summary="Adds an editor instance to the editor collection.">
<description>Adds an editor instance to the editor collection. This will also set it as the active editor.
</description>
<param name="e" type="tinymce.Editor">
<description>Editor instance to add to the collection.</description>
</param>
<return type="tinymce.Editor">
<description>The same instance that got passed in.</description>
</return>
</method>
<method name="remove" static="true" summary="Removes a editor instance from the collection.">
<description>Removes a editor instance from the collection.
</description>
<param name="e" type="tinymce.Editor">
<description>Editor instance to remove.</description>
</param>
<return type="tinymce.Editor">
<description>The editor that got passed in will be return if it was found otherwise null.</description>
</return>
</method>
<method name="execCommand" static="true" summary="Executes a specific command on the currently active editor.">
<description>Executes a specific command on the currently active editor.
</description>
<param name="c" type="String">
<description>Command to perform for example Bold.</description>
</param>
<param name="u" type="Boolean">
<description>Optional boolean state if a UI should be presented for the command or not.</description>
</param>
<param name="v" type="String">
<description>Optional value parameter like for example an URL to a link.</description>
</param>
<return type="Boolean">
<description>true/false if the command was executed or not.</description>
</return>
</method>
<method deprecated="Use the execCommand method of a editor instance instead." name="execInstanceCommand" static="true" summary="Executes a command on a specific editor by id.">
<description>Executes a command on a specific editor by id. This method was added for compatibility with the 2.x branch.
</description>
<param name="id" type="String">
<description>Editor id to perform the command on.</description>
</param>
<param name="c" type="String">
<description>Command to perform for example Bold.</description>
</param>
<param name="u" type="Boolean">
<description>Optional boolean state if a UI should be presented for the command or not.</description>
</param>
<param name="v" type="String">
<description>Optional value parameter like for example an URL to a link.</description>
</param>
<return type="Boolean">
<description>true/false if the command was executed or not.</description>
</return>
</method>
<method name="triggerSave" static="true" summary="Calls the save method on all editor instances in the collection.">
<description>Calls the save method on all editor instances in the collection. This can be useful when a form is to be submitted.
</description>
</method>
<method name="addI18n" static="true" summary="Adds a language pack, this gets called by the loaded language files like en.">
<description>Adds a language pack, this gets called by the loaded language files like en.js.
</description>
<param name="p" type="String">
<description>Prefix for the language items. For example en.myplugin</description>
</param>
<param name="o" type="Object">
<description>Name/Value collection with items to add to the language group.</description>
</param>
</method>
</members>
</class>
<class fullname="tinymce.UndoManager" name="UndoManager" summary="This class handles the undo/redo history levels for the editor.">
<description>This class handles the undo/redo history levels for the editor. Since the build in undo/redo has major drawbacks a custom one was needed.</description>
<members>
<method constructor="true" name="UndoManager" summary="Constructs a new UndoManager instance.">
<description>Constructs a new UndoManager instance.
</description>
<param name="ed" type="tinymce.Editor">
<description>Editor instance to undo/redo in.</description>
</param>
</method>
<method name="add" summary="Adds a new undo level/snapshot to the undo list.">
<description>Adds a new undo level/snapshot to the undo list.
</description>
<param name="l" type="Object">
<description>Optional undo level object to add.</description>
</param>
<return type="Object">
<description>Undo level that got added or null it a level wasn't needed.</description>
</return>
</method>
<method name="undo" summary="Undoes the last action.">
<description>Undoes the last action.
</description>
<return type="Object">
<description>Undo level or null if no undo was performed.</description>
</return>
</method>
<method name="redo" summary="Redoes the last action.">
<description>Redoes the last action.
</description>
<return type="Object">
<description>Redo level or null if no redo was performed.</description>
</return>
</method>
<method name="clear" summary="Removes all undo levels.">
<description>Removes all undo levels.
</description>
</method>
<method name="hasUndo" summary="Returns true/false if the undo manager has any undo levels.">
<description>Returns true/false if the undo manager has any undo levels.
</description>
<return type="Boolean">
<description>true/false if the undo manager has any undo levels.</description>
</return>
</method>
<method name="hasRedo" summary="Returns true/false if the undo manager has any redo levels.">
<description>Returns true/false if the undo manager has any redo levels.
</description>
<return type="Boolean">
<description>true/false if the undo manager has any redo levels.</description>
</return>
</method>
</members>
</class>
<class fullname="tinymce.WindowManager" name="WindowManager" summary="This class handles the creation of native windows and dialogs.">
<description>This class handles the creation of native windows and dialogs. This class can be extended to provide for example inline dialogs.</description>
<members>
<method constructor="true" name="WindowManager" summary="Constructs a new window manager instance.">
<description>Constructs a new window manager instance.
</description>
<param name="ed" type="tinymce.Editor">
<description>Editor instance that the windows are bound to.</description>
</param>
</method>
<method name="open" summary="Opens a new window.">
<description>Opens a new window.
</description>
<param name="s" type="Object">
<description>Optional name/value settings collection contains things like width/height/url etc.</description>
</param>
<param name="p" type="Object">
<description>Optional parameters/arguments collection can be used by the dialogs to retrive custom parameters.</description>
</param>
</method>
<method name="close" summary="Closes the specified window.">
<description>Closes the specified window. This will also dispatch out a onClose event.
</description>
<param name="w" type="Window">
<description>Native window object to close.</description>
</param>
</method>
<method name="createInstance" summary="Creates a instance of a class.">
<description>Creates a instance of a class. This method was needed since IE can't create instances
of classes from a parent window due to some reference problem. Any arguments passed after the class name
will be passed as arguments to the constructor.
</description>
<param name="cl" type="String">
<description>Class name to create an instance of.</description>
</param>
<return type="Object">
<description>Instance of the specified class.</description>
</return>
</method>
<method name="confirm" summary="Creates a confirm dialog.">
<description>Creates a confirm dialog. Please don't use the blocking behavior of this
native version use the callback method instead then it can be extended.
</description>
<param name="t" type="String">
<description>Title for the new confirm dialog.</description>
</param>
<param name="cb" type="function">
<description>Callback function to be executed after the user has selected ok or cancel.</description>
</param>
<param name="s" type="Object">
<description>Optional scope to execute the callback in.</description>
</param>
</method>
<method name="alert" summary="Creates a alert dialog.">
<description>Creates a alert dialog. Please don't use the blocking behavior of this
native version use the callback method instead then it can be extended.
</description>
<param name="t" type="String">
<description>Title for the new alert dialog.</description>
</param>
<param name="cb" type="function">
<description>Callback function to be executed after the user has selected ok.</description>
</param>
<param name="s" type="Object">
<description>Optional scope to execute the callback in.</description>
</param>
</method>
</members>
</class>
<namespace fullname="tinymce.dom" name="dom">
<class fullname="tinymce.dom.DOMUtils" name="DOMUtils" summary="Utility class for various DOM manipulation and retrival functions.">
<description>Utility class for various DOM manipulation and retrival functions.</description>
<members>
<method constructor="true" name="DOMUtils" summary="Constructs a new DOMUtils instance.">
<description>Constructs a new DOMUtils instance. Consult the Wiki for more details on settings etc for this class.
</description>
<param name="d" type="Document">
<description>Document reference to bind the utility class to.</description>
</param>
<param name="s" type="settings">
<description>Optional settings collection.</description>
</param>
</method>
<method name="getRoot" summary="Returns the root node of the document this is normally the body but might be a DIV.">
<description>Returns the root node of the document this is normally the body but might be a DIV. Parents like getParent will not
go above the point of this root node.
</description>
<return type="Element">
<description>Root element for the utility class.</description>
</return>
</method>
<method name="getViewPort" summary="Returns the viewport of the window.">
<description>Returns the viewport of the window.
</description>
<param name="w" type="Window">
<description>Optional window to get viewport of.</description>
</param>
<return type="Object">
<description>Viewport object with fields x, y, w and h.</description>
</return>
</method>
<method name="getRect" summary="Returns the rectangle for a specific element.">
<description>Returns the rectangle for a specific element.
</description>
<param name="e">
<type fullname="Element"/>
<type fullname="String"/>
<description>Element object or element ID to get rectange from.</description>
</param>
<return type="object">
<description>Rectange for specified element object with x, y, w, h fields.</description>
</return>
</method>
<method name="getSize" summary="Returns the size dimensions of the specified element.">
<description>Returns the size dimensions of the specified element.
</description>
<param name="e">
<type fullname="Element"/>
<type fullname="String"/>
<description>Element object or element ID to get rectange from.</description>
</param>
<return type="object">
<description>Rectange for specified element object with w, h fields.</description>
</return>
</method>
<method name="getParent" summary="Returns a node by the specified selector function.">
<description>Returns a node by the specified selector function. This function will
loop through all parent nodes and call the specified function for each node.
If the function then returns true indicating that it has found what it was looking for, the loop execution will then end
and the node it found will be returned.
</description>
<param name="n">
<type fullname="Node"/>
<type fullname="String"/>
<description>DOM node to search parents on or ID string.</description>
</param>
<param name="f" type="function">
<description>Selection function to execute on each node or CSS pattern.</description>
</param>
<param name="r" type="Node">
<description>Optional root element, never go below this point.</description>
</param>
<return type="Node">
<description>DOM Node or null if it wasn't found.</description>
</return>
</method>
<method name="getParents" summary="Returns a node list of all parents matching the specified selector function or pattern.">
<description>Returns a node list of all parents matching the specified selector function or pattern.
If the function then returns true indicating that it has found what it was looking for and that node will be collected.
</description>
<param name="n">
<type fullname="Node"/>
<type fullname="String"/>
<description>DOM node to search parents on or ID string.</description>
</param>
<param name="f" type="function">
<description>Selection function to execute on each node or CSS pattern.</description>
</param>
<param name="r" type="Node">
<description>Optional root element, never go below this point.</description>
</param>
<return type="Array">
<description>Array of nodes or null if it wasn't found.</description>
</return>
</method>
<method name="get" summary="Returns the specified element by ID or the input element if it isn't a string.">
<description>Returns the specified element by ID or the input element if it isn't a string.
</description>
<param name="n">
<type fullname="String"/>
<type fullname="Element"/>
<description>Element id to look for or element to just pass though.</description>
</param>
<return type="Element">
<description>Element matching the specified id or null if it wasn't found.</description>
</return>
</method>
<method name="select" summary="Selects specific elements by a CSS level 3 pattern.">
<description>Selects specific elements by a CSS level 3 pattern. For example "div#a1 p.test".
This function is optimized for the most common patterns needed in TinyMCE but it also performes good enough
on more complex patterns.
</description>
<param name="p" type="String">
<description>CSS level 1 pattern to select/find elements by.</description>
</param>
<param name="s" type="Object">
<description>Optional root element/scope element to search in.</description>
</param>
<return type="Array">
<description>Array with all matched elements.</description>
</return>
</method>
<method name="is" summary="Returns true/false if the specified element matches the specified css pattern.">
<description>Returns true/false if the specified element matches the specified css pattern.
</description>
<param name="n">
<type fullname="Node"/>
<type fullname="NodeList"/>
<description>DOM node to match or an array of nodes to match.</description>
</param>
<param name="patt" type="String">
<description>CSS pattern to match the element agains.</description>
</param>
</method>
<method name="add" summary="Adds the specified element to another element or elements.">
<description>Adds the specified element to another element or elements.
</description>
<param name="Element">
<type fullname="String"/>
<type fullname="Element"/>
<type fullname="Array"/>
<description>id string, DOM node element or array of id's or elements to add to.</description>
</param>
<param name="n">
<type fullname="String"/>
<type fullname="Element"/>
<description>Name of new element to add or existing element to add.</description>
</param>
<param name="a" type="Object">
<description>Optional object collection with arguments to add to the new element(s).</description>
</param>
<param name="h" type="String">
<description>Optional inner HTML contents to add for each element.</description>
</param>
<param name="c" type="Boolean">
<description>Optional internal state to indicate if it should create or add.</description>
</param>
<return>
<type fullname="Element"/>
<type fullname="Array"/>
<description>Element that got created or array with elements if multiple elements where passed.</description>
</return>
</method>
<method name="create" summary="Creates a new element.">
<description>Creates a new element.
</description>
<param name="n" type="String">
<description>Name of new element.</description>
</param>
<param name="a" type="Object">
<description>Optional object name/value collection with element attributes.</description>
</param>
<param name="h" type="String">
<description>Optional HTML string to set as inner HTML of the element.</description>
</param>
<return type="Element">
<description>HTML DOM node element that got created.</description>
</return>
</method>
<method name="createHTML" summary="Create HTML string for element.">
<description>Create HTML string for element. The elemtn will be closed unless an empty inner HTML string is passed.
</description>
<param name="n" type="String">
<description>Name of new element.</description>
</param>
<param name="a" type="Object">
<description>Optional object name/value collection with element attributes.</description>
</param>
<param name="h" type="String">
<description>Optional HTML string to set as inner HTML of the element.</description>
</param>
<return type="String">
<description>String with new HTML element like for example: &lt;a href="#"&gt;test&lt;/a&gt;.</description>
</return>
</method>
<method name="remove" summary="Removes/deletes the specified element(s) from the DOM.">
<description>Removes/deletes the specified element(s) from the DOM.
</description>
<param name="n">
<type fullname="String"/>
<type fullname="Element"/>
<type fullname="Array"/>
<description>ID of element or DOM element object or array containing multiple elements/ids.</description>
</param>
<param name="k" type="Boolean">
<description>Optional state to keep children or not. If set to true all children will be placed at the location of the removed element.</description>
</param>
<return>
<type fullname="Element"/>
<type fullname="Array"/>
<description>HTML DOM element that got removed or array of elements depending on input.</description>
</return>
</method>
<method name="setStyle" summary="Sets the CSS style value on a HTML element.">
<description>Sets the CSS style value on a HTML element. The name can be a camelcase string
or the CSS style name like background-color.
</description>
<param name="n">
<type fullname="String"/>
<type fullname="Element"/>
<type fullname="Array"/>
<description>HTML element/Element ID or Array of elements/ids to set CSS style value on.</description>
</param>
<param name="na" type="String">
<description>Name of the style value to set.</description>
</param>
<param name="v" type="String">
<description>Value to set on the style.</description>
</param>
</method>
<method name="getStyle" summary="Returns the current style or runtime/computed value of a element.">
<description>Returns the current style or runtime/computed value of a element.
</description>
<param name="n">
<type fullname="String"/>
<type fullname="Element"/>
<description>HTML element or element id string to get style from.</description>
</param>
<param name="na" type="String">
<description>Style name to return.</description>
</param>
<param name="c" type="String">
<description>Computed style.</description>
</param>
<return type="String">
<description>Current style or computed style value of a element.</description>
</return>
</method>
<method name="setStyles" summary="Sets multiple styles on the specified element(s).">
<description>Sets multiple styles on the specified element(s).
</description>
<param name="e">
<type fullname="Element"/>
<type fullname="String"/>
<type fullname="Array"/>
<description>DOM element, element id string or array of elements/ids to set styles on.</description>
</param>
<param name="o" type="Object">
<description>Name/Value collection of style items to add to the element(s).</description>
</param>
</method>
<method name="setAttrib" summary="Sets the specified attributes value of a element or elements.">
<description>Sets the specified attributes value of a element or elements.
</description>
<param name="e">
<type fullname="Element"/>
<type fullname="String"/>
<type fullname="Array"/>
<description>DOM element, element id string or array of elements/ids to set attribute on.</description>
</param>
<param name="n" type="String">
<description>Name of attribute to set.</description>
</param>
<param name="v" type="String">
<description>Value to set on the attribute of this value is falsy like null 0 or '' it will remove the attribute instead.</description>
</param>
</method>
<method name="setAttribs" summary="Sets the specified attributes of a element or elements.">
<description>Sets the specified attributes of a element or elements.
</description>
<param name="e">
<type fullname="Element"/>
<type fullname="String"/>
<type fullname="Array"/>
<description>DOM element, element id string or array of elements/ids to set attributes on.</description>
</param>
<param name="o" type="Object">
<description>Name/Value collection of attribute items to add to the element(s).</description>
</param>
</method>
<method name="getAttrib" summary="Returns the specified attribute by name.">
<description>Returns the specified attribute by name.
</description>
<param name="e">
<type fullname="String"/>
<type fullname="Element"/>
<description>Element string id or DOM element to get attribute from.</description>
</param>
<param name="n" type="String">
<description>Name of attribute to get.</description>
</param>
<param name="dv" type="String">
<description>Optional default value to return if the attribute didn't exist.</description>
</param>
<return type="String">
<description>Attribute value string, default value or null if the attribute wasn't found.</description>
</return>
</method>
<method name="getPos" summary="Returns the absolute x, y position of a node.">
<description>Returns the absolute x, y position of a node. The position will be returned in a object with x, y fields.
</description>
<param name="n">
<type fullname="Element"/>
<type fullname="String"/>
<description>HTML element or element id to get x, y position from.</description>
</param>
<param name="ro" type="Element">
<description>Optional root element to stop calculations at.</description>
</param>
<return type="object">
<description>Absolute position of the specified element object with x, y fields.</description>
</return>
</method>
<method name="parseStyle" summary="Parses the specified style value into an object collection.">
<description>Parses the specified style value into an object collection. This parser will also
merge and remove any redundant items that browsers might have added. It will also convert non hex
colors to hex values. Urls inside the styles will also be converted to absolute/relative based on settings.
</description>
<param name="st" type="String">
<description>Style value to parse for example: border:1px solid red;.</description>
</param>
<return type="Object">
<description>Object representation of that style like {border : '1px solid red'}</description>
</return>
</method>
<method name="serializeStyle" summary="Serializes the specified style object into a string.">
<description>Serializes the specified style object into a string.
</description>
<param name="o" type="Object">
<description>Object to serialize as string for example: {border : '1px solid red'}</description>
</param>
<return type="String">
<description>String representation of the style object for example: border: 1px solid red.</description>
</return>
</method>
<method name="loadCSS" summary="Imports/loads the specified CSS file into the document bound to the class.">
<description>Imports/loads the specified CSS file into the document bound to the class.
</description>
<param name="u" type="String">
<description>URL to CSS file to load.</description>
</param>
</method>
<method name="addClass" summary="Adds a class to the specified element or elements.">
<description>Adds a class to the specified element or elements.
</description>
<param name="Element">
<type fullname="String"/>
<type fullname="Element"/>
<type fullname="Array"/>
<description>ID string or DOM element or array with elements or IDs.</description>
</param>
<param name="c" type="String">
<description>Class name to add to each element.</description>
</param>
<return>
<type fullname="String"/>
<type fullname="Array"/>
<description>String with new class value or array with new class values for all elements.</description>
</return>
</method>
<method name="removeClass" summary="Removes a class from the specified element or elements.">
<description>Removes a class from the specified element or elements.
</description>
<param name="Element">
<type fullname="String"/>
<type fullname="Element"/>
<type fullname="Array"/>
<description>ID string or DOM element or array with elements or IDs.</description>
</param>
<param name="c" type="String">
<description>Class name to remove to each element.</description>
</param>
<return>
<type fullname="String"/>
<type fullname="Array"/>
<description>String with new class value or array with new class values for all elements.</description>
</return>
</method>
<method name="hasClass" summary="Returns true if the specified element has the specified class.">
<description>Returns true if the specified element has the specified class.
</description>
<param name="n">
<type fullname="String"/>
<type fullname="Element"/>
<description>HTML element or element id string to check CSS class on.</description>
</param>
<param name="c" type="String">
<description>CSS class to check for.</description>
</param>
<return type="Boolean">
<description>true/false if the specified element has the specified class.</description>
</return>
</method>
<method name="show" summary="Shows the specified element(s) by ID by setting the &quot;display&quot; style.">
<description>Shows the specified element(s) by ID by setting the "display" style.
</description>
<param name="e">
<type fullname="String"/>
<type fullname="Element"/>
<type fullname="Array"/>
<description>ID of DOM element or DOM element or array with elements or IDs to show.</description>
</param>
</method>
<method name="hide" summary="Hides the specified element(s) by ID by setting the &quot;display&quot; style.">
<description>Hides the specified element(s) by ID by setting the "display" style.
</description>
<param name="e">
<type fullname="String"/>
<type fullname="Element"/>
<type fullname="Array"/>
<description>ID of DOM element or DOM element or array with elements or IDs to hide.</description>
</param>
</method>
<method name="isHidden" summary="Returns true/false if the element is hidden or not by checking the &quot;display&quot; style.">
<description>Returns true/false if the element is hidden or not by checking the "display" style.
</description>
<param name="e">
<type fullname="String"/>
<type fullname="Element"/>
<description>Id or element to check display state on.</description>
</param>
<return type="Boolean">
<description>true/false if the element is hidden or not.</description>
</return>
</method>
<method name="uniqueId" summary="Returns a unique id.">
<description>Returns a unique id. This can be useful when generating elements on the fly.
This method will not check if the element allready exists.
</description>
<param name="p" type="String">
<description>Optional prefix to add infront of all ids defaults to "mce_".</description>
</param>
<return type="String">
<description>Unique id.</description>
</return>
</method>
<method name="setHTML" summary="Sets the specified HTML content inside the element or elements.">
<description>Sets the specified HTML content inside the element or elements. The HTML will first be processed this means
URLs will get converted, hex color values fixed etc. Check processHTML for details.
</description>
<param name="e">
<type fullname="Element"/>
<type fullname="String"/>
<type fullname="Array"/>
<description>DOM element, element id string or array of elements/ids to set HTML inside.</description>
</param>
<param name="h" type="String">
<description>HTML content to set as inner HTML of the element.</description>
</param>
</method>
<method name="processHTML" summary="Processes the HTML by replacing strong, em, del in gecko since it doesn't support them properly in a RTE environment.">
<description>Processes the HTML by replacing strong, em, del in gecko since it doesn't support them
properly in a RTE environment. It also converts any URLs in links and images and places
a converted value into a separate attribute with the mce prefix like mce_src or mce_href.
</description>
<param name="h" type="String">
<description>HTML to process.</description>
</param>
<return type="String">
<description>Processed HTML code.</description>
</return>
</method>
<method name="getOuterHTML" summary="Returns the outer HTML of an element.">
<description>Returns the outer HTML of an element.
</description>
<param name="e">
<type fullname="String"/>
<type fullname="Element"/>
<description>Element ID or element object to get outer HTML from.</description>
</param>
<return type="String">
<description>Outer HTML string.</description>
</return>
</method>
<method name="setOuterHTML" summary="Sets the specified outer HTML on a element or elements.">
<description>Sets the specified outer HTML on a element or elements.
</description>
<param name="e">
<type fullname="Element"/>
<type fullname="String"/>
<type fullname="Array"/>
<description>DOM element, element id string or array of elements/ids to set outer HTML on.</description>
</param>
<param name="h" type="Object">
<description>HTML code to set as outer value for the element.</description>
</param>
<param name="d" type="Document">
<description>Optional document scope to use in this process defaults to the document of the DOM class.</description>
</param>
</method>
<method name="decode" summary="Entity decode a string, resolves any HTML entities like &amp;aring;.">
<description>Entity decode a string, resolves any HTML entities like &amp;aring;.
</description>
<param name="s" type="String">
<description>String to decode entities on.</description>
</param>
<return type="String">
<description>Entity decoded string.</description>
</return>
</method>
<method name="encode" summary="Entity encodes a string, encodes the most common entities &lt;&gt;&quot;&amp; into entities.">
<description>Entity encodes a string, encodes the most common entities &lt;&gt;"&amp; into entities.
</description>
<param name="s" type="String">
<description>String to encode with entities.</description>
</param>
<return type="String">
<description>Entity encoded string.</description>
</return>
</method>
<method name="insertAfter" summary="Inserts a element after the reference element.">
<description>Inserts a element after the reference element.
</description>
<param name="Element" type="Element">
<description>to insert after the reference.</description>
</param>
<param name="r">
<type fullname="Element"/>
<type fullname="String"/>
<type fullname="Array"/>
<description>Reference element, element id or array of elements to insert after.</description>
</param>
<return>
<type fullname="Element"/>
<type fullname="Array"/>
<description>Element that got added or an array with elements.</description>
</return>
</method>
<method name="isBlock" summary="Returns true/false if the specified element is a block element or not.">
<description>Returns true/false if the specified element is a block element or not.
</description>
<param name="n" type="Node">
<description>Element/Node to check.</description>
</param>
<return type="Boolean">
<description>True/False state if the node is a block element or not.</description>
</return>
</method>
<method name="replace" summary="Replaces the specified element or elements with the specified element, the new element will be cloned if multiple inputs...">
<description>Replaces the specified element or elements with the specified element, the new element will
be cloned if multiple inputs elements are passed.
</description>
<param name="n" type="Element">
<description>New element to replace old ones with.</description>
</param>
<param name="o">
<type fullname="Element"/>
<type fullname="String"/>
<type fullname="Array"/>
<description>Element DOM node, element id or array of elements or ids to replace.</description>
</param>
<param name="k" type="Boolean">
<description>Optional keep children state, if set to true child nodes from the old object will be added to new ones.</description>
</param>
</method>
<method name="findCommonAncestor" summary="Find the common ancestor of two elements.">
<description>Find the common ancestor of two elements. This is a shorter method than using the DOM Range logic.
</description>
<param name="a" type="Element">
<description>Element to find common ancestor of.</description>
</param>
<param name="b" type="Element">
<description>Element to find common ancestor of.</description>
</param>
<return type="Element">
<description>Common ancestor element of the two input elements.</description>
</return>
</method>
<method name="toHex" summary="Parses the specified RGB color value and returns a hex version of that color.">
<description>Parses the specified RGB color value and returns a hex version of that color.
</description>
<param name="s" type="String">
<description>RGB string value like rgb(1,2,3)</description>
</param>
<return type="String">
<description>Hex version of that RGB value like #FF00FF.</description>
</return>
</method>
<method name="getClasses" summary="Returns a array of all single CSS classes in the document.">
<description>Returns a array of all single CSS classes in the document. A single CSS class is a simple
rule like ".class" complex ones like "div td.class" will not be added to output.
</description>
<return type="Array">
<description>Array with class objects each object has a class field might be other fields in the future.</description>
</return>
</method>
<method name="run" summary="Executes the specified function on the element by id or dom element node or array of elements/id.">
<description>Executes the specified function on the element by id or dom element node or array of elements/id.
</description>
<param name="Element">
<type fullname="String"/>
<type fullname="Element"/>
<type fullname="Array"/>
<description>ID or DOM element object or array with ids or elements.</description>
</param>
<param name="f" type="function">
<description>Function to execute for each item.</description>
</param>
<param name="s" type="Object">
<description>Optional scope to execute the function in.</description>
</param>
<return>
<type fullname="Object"/>
<type fullname="Array"/>
<description>Single object or array with objects depending on multiple input or not.</description>
</return>
</method>
<method name="getAttribs" summary="Returns an NodeList with attributes for the element.">
<description>Returns an NodeList with attributes for the element.
</description>
<param name="n">
<type fullname="HTMLElement"/>
<type fullname="string"/>
<description>Element node or string id to get attributes from.</description>
</param>
<return type="NodeList">
<description>NodeList with attributes.</description>
</return>
</method>
<method name="destroy" summary="Destroys all internal references to the DOM to solve IE leak issues.">
<description>Destroys all internal references to the DOM to solve IE leak issues.
</description>
</method>
<method name="createRng" summary="Created a new DOM Range object.">
<description>Created a new DOM Range object. This will use the native DOM Range API if it's
available if it's not it will fallback to the custom TinyMCE implementation.
</description>
<return type="DOMRange">
<description>DOM Range object.</description>
</return>
</method>
<method name="split" summary="Splits an element into two new elements and places the specified split element or element between the new ones.">
<description>Splits an element into two new elements and places the specified split
element or element between the new ones. For example splitting the paragraph at the bold element in
this example &lt;p&gt;abc&lt;b&gt;abc&lt;/b&gt;123&lt;/p&gt; would produce &lt;p&gt;abc&lt;/p&gt;&lt;b&gt;abc&lt;/b&gt;&lt;p&gt;123&lt;/p&gt;.
</description>
<param name="pe" type="Element">
<description>Parent element to split.</description>
</param>
<param name="e" type="Element">
<description>Element to split at.</description>
</param>
<param name="re" type="Element">
<description>Optional replacement element to replace the split element by.</description>
</param>
<return type="Element">
<description>Returns the split element or the replacement element if that is specified.</description>
</return>
</method>
<method name="bind" summary="Adds an event handler to the specified object.">
<description>Adds an event handler to the specified object.
</description>
<param name="o">
<type fullname="Element"/>
<type fullname="Document"/>
<type fullname="Window"/>
<type fullname="Array"/>
<type fullname="String"/>
<description>Object or element id string to add event handler to or an array of elements/ids/documents.</description>
</param>
<param name="n" type="String">
<description>Name of event handler to add for example: click.</description>
</param>
<param name="f" type="function">
<description>Function to execute when the event occurs.</description>
</param>
<param name="s" type="Object">
<description>Optional scope to execute the function in.</description>
</param>
<return type="function">
<description>Function callback handler the same as the one passed in.</description>
</return>
</method>
<method name="unbind" summary="Removes the specified event handler by name and function from a element or collection of elements.">
<description>Removes the specified event handler by name and function from a element or collection of elements.
</description>
<param name="o">
<type fullname="String"/>
<type fullname="Element"/>
<type fullname="Array"/>
<description>Element ID string or HTML element or an array of elements or ids to remove handler from.</description>
</param>
<param name="n" type="String">
<description>Event handler name like for example: "click"</description>
</param>
<param name="f" type="function">
<description>Function to remove.</description>
</param>
<return>
<type fullname="bool"/>
<type fullname="Array"/>
<description>Bool state if true if the handler was removed or an array with states if multiple elements where passed in.</description>
</return>
</method>
</members>
</class>
<class fullname="tinymce.dom.Element" name="Element" summary="Element class, this enables element blocking in IE.">
<description>Element class, this enables element blocking in IE. Element blocking is a method to block out select blockes that
gets visible though DIVs on IE 6 it uses a iframe for this blocking. This class also shortens the length of some DOM API calls
since it's bound to an element.
</description>
<members>
<method constructor="true" name="Element" summary="Constructs a new Element instance.">
<description>Constructs a new Element instance. Consult the Wiki for more details on this class.
</description>
<param name="Element" type="String">
<description>ID to bind/execute methods on.</description>
</param>
<param name="Optional" type="Object">
<description>settings name/value collection.</description>
</param>
</method>
<method name="on" summary="Adds a event handler to the element.">
<description>Adds a event handler to the element.
</description>
<param name="n" type="String">
<description>Event name like for example "click".</description>
</param>
<param name="f" type="function">
<description>Function to execute on the specified event.</description>
</param>
<param name="s" type="Object">
<description>Optional scope to execute function on.</description>
</param>
<return type="function">
<description>Event handler function the same as the input function.</description>
</return>
</method>
<method name="getXY" summary="Returns the absolute X, Y cordinate of the element.">
<description>Returns the absolute X, Y cordinate of the element.
</description>
<return type="Object">
<description>Objext with x, y cordinate fields.</description>
</return>
</method>
<method name="getSize" summary="Returns the size of the element by a object with w and h fields.">
<description>Returns the size of the element by a object with w and h fields.
</description>
<return type="Object">
<description>Object with element size with a w and h field.</description>
</return>
</method>
<method name="moveTo" summary="Moves the element to a specific absolute position.">
<description>Moves the element to a specific absolute position.
</description>
<param name="x" type="Number">
<description>X cordinate of element position.</description>
</param>
<param name="y" type="Number">
<description>Y cordinate of element position.</description>
</param>
</method>
<method name="moveBy" summary="Moves the element relative to the current position.">
<description>Moves the element relative to the current position.
</description>
<param name="x" type="Number">
<description>Relative X cordinate of element position.</description>
</param>
<param name="y" type="Number">
<description>Relative Y cordinate of element position.</description>
</param>
</method>
<method name="resizeTo" summary="Resizes the element to a specific size.">
<description>Resizes the element to a specific size.
</description>
<param name="w" type="Number">
<description>New width of element.</description>
</param>
<param name="h" type="Numner">
<description>New height of element.</description>
</param>
</method>
<method name="resizeBy" summary="Resizes the element relative to the current sizeto a specific size.">
<description>Resizes the element relative to the current sizeto a specific size.
</description>
<param name="w" type="Number">
<description>Relative width of element.</description>
</param>
<param name="h" type="Numner">
<description>Relative height of element.</description>
</param>
</method>
<method name="update" summary="Updates the element blocker in IE6 based on the style information of the element.">
<description>Updates the element blocker in IE6 based on the style information of the element.
</description>
<param name="k" type="String">
<description>Optional function key. Used internally.</description>
</param>
</method>
</members>
</class>
<class fullname="tinymce.dom.EventUtils" name="EventUtils" summary="This class handles DOM events in a cross platform fasion it also keeps track of element and handler references to be abl...">
<description>This class handles DOM events in a cross platform fasion it also keeps track of element
and handler references to be able to clean elements to reduce IE memory leaks.
</description>
<members>
<method constructor="true" name="EventUtils" summary="Constructs a new EventUtils instance.">
<description>Constructs a new EventUtils instance.
</description>
</method>
<method name="add" summary="Adds an event handler to the specified object.">
<description>Adds an event handler to the specified object.
</description>
<param name="o">
<type fullname="Element"/>
<type fullname="Document"/>
<type fullname="Window"/>
<type fullname="Array"/>
<type fullname="String"/>
<description>Object or element id string to add event handler to or an array of elements/ids/documents.</description>
</param>
<param name="n">
<type fullname="String"/>
<type fullname="Array"/>
<description>Name of event handler to add for example: click.</description>
</param>
<param name="f" type="function">
<description>Function to execute when the event occurs.</description>
</param>
<param name="s" type="Object">
<description>Optional scope to execute the function in.</description>
</param>
<return type="function">
<description>Function callback handler the same as the one passed in.</description>
</return>
</method>
<method name="remove" summary="Removes the specified event handler by name and function from a element or collection of elements.">
<description>Removes the specified event handler by name and function from a element or collection of elements.
</description>
<param name="o">
<type fullname="String"/>
<type fullname="Element"/>
<type fullname="Array"/>
<description>Element ID string or HTML element or an array of elements or ids to remove handler from.</description>
</param>
<param name="n" type="String">
<description>Event handler name like for example: "click"</description>
</param>
<param name="f" type="function">
<description>Function to remove.</description>
</param>
<return>
<type fullname="bool"/>
<type fullname="Array"/>
<description>Bool state if true if the handler was removed or an array with states if multiple elements where passed in.</description>
</return>
</method>
<method name="clear" summary="Clears all events of a specific object.">
<description>Clears all events of a specific object.
</description>
<param name="o" type="Object">
<description>DOM element or object to remove all events from.</description>
</param>
</method>
<method name="cancel" summary="Cancels an event for both bubbeling and the default browser behavior.">
<description>Cancels an event for both bubbeling and the default browser behavior.
</description>
<param name="e" type="Event">
<description>Event object to cancel.</description>
</param>
<return type="Boolean">
<description>Always false.</description>
</return>
</method>
<method name="stop" summary="Stops propogation/bubbeling of an event.">
<description>Stops propogation/bubbeling of an event.
</description>
<param name="e" type="Event">
<description>Event to cancel bubbeling on.</description>
</param>
<return type="Boolean">
<description>Always false.</description>
</return>
</method>
<method name="prevent" summary="Prevent default browser behvaior of an event.">
<description>Prevent default browser behvaior of an event.
</description>
<param name="e" type="Event">
<description>Event to prevent default browser behvaior of an event.</description>
</param>
<return type="Boolean">
<description>Always false.</description>
</return>
</method>
<method name="destroy" summary="Destroys the instance.">
<description>Destroys the instance.
</description>
</method>
</members>
</class>
<class fullname="tinymce.dom.ScriptLoader" name="ScriptLoader" summary="This class handles asynchronous/synchronous loading of JavaScript files it will execute callbacks when various items get...">
<description>This class handles asynchronous/synchronous loading of JavaScript files it will execute callbacks when
various items gets loaded. This class is useful to</description>
<members>
<method constructor="true" name="ScriptLoader" summary="Constructs a new script loaded instance.">
<description>Constructs a new script loaded instance. Check the Wiki for more detailed information for this method.
</description>
<param name="s" type="Object">
<description>Optional settings object for the ScriptLoaded.</description>
</param>
</method>
<method name="isDone" summary="Returns true/false if a script has been loaded or not.">
<description>Returns true/false if a script has been loaded or not.
</description>
<param name="u" type="String">
<description>URL to check for.</description>
</param>
</method>
<method name="markDone" summary="Marks a specific script to be loaded.">
<description>Marks a specific script to be loaded. This can be useful if a script got loaded outside
the script loader or to skip it from loading some script.
</description>
<param name="u" type="string">
<description>Absolute URL to the script to mark as loaded.</description>
</param>
</method>
<method name="add" summary="Adds a specific script to the load queue of the script loader.">
<description>Adds a specific script to the load queue of the script loader.
</description>
<param name="u" type="String">
<description>Absolute URL to script to add.</description>
</param>
<param name="cb" type="function">
<description>Optional callback function to execute ones this script gets loaded.</description>
</param>
<param name="s" type="Object">
<description>Optional scope to execute callback in.</description>
</param>
<param name="pr" type="Boolean">
<description>Optional state to add to top or bottom of load queue. Defaults to bottom.</description>
</param>
<return type="object">
<description>Load queue object contains, state, url and callback.</description>
</return>
</method>
<method name="load" summary="Loads a specific script directly without adding it to the load queue.">
<description>Loads a specific script directly without adding it to the load queue.
</description>
<param name="u" type="String">
<description>Absolute URL to script to add.</description>
</param>
<param name="cb" type="function">
<description>Optional callback function to execute ones this script gets loaded.</description>
</param>
<param name="s" type="Object">
<description>Optional scope to execute callback in.</description>
</param>
</method>
<method name="loadQueue" summary="Starts the loading of the queue.">
<description>Starts the loading of the queue.
</description>
<param name="cb" type="function">
<description>Optional callback to execute when all queued items are loaded.</description>
</param>
<param name="s" type="Object">
<description>Optional scope to execute the callback in.</description>
</param>
</method>
<method name="eval" summary="Evaluates the specified string inside the global namespace/window scope.">
<description>Evaluates the specified string inside the global namespace/window scope.
</description>
<param name="Script" type="string">
<description>contents to evaluate.</description>
</param>
</method>
<method name="loadScripts" summary="Loads the specified queue of files and executes the callback ones they are loaded.">
<description>Loads the specified queue of files and executes the callback ones they are loaded.
This method is generally not used outside this class but it might be useful in some scenarios.
</description>
<param name="sc" type="Array">
<description>Array of queue items to load.</description>
</param>
<param name="cb" type="function">
<description>Optional callback to execute ones all items are loaded.</description>
</param>
<param name="s" type="Object">
<description>Optional scope to execute callback in.</description>
</param>
</method>
<method name="loadScript" static="true" summary="Loads the specified script without adding it to any load queue.">
<description>Loads the specified script without adding it to any load queue.
</description>
<param name="u" type="string">
<description>URL to dynamically load.</description>
</param>
<param name="cb" type="function">
<description>Callback function to executed on load.</description>
</param>
</method>
</members>
</class>
<class fullname="tinymce.dom.Selection" name="Selection" summary="This class handles text and control selection it's an crossbrowser utility class.">
<description>This class handles text and control selection it's an crossbrowser utility class.
Consult the TinyMCE Wiki API for more details and examples on how to use this class.</description>
<members>
<method constructor="true" name="Selection" summary="Constructs a new selection instance.">
<description>Constructs a new selection instance.
</description>
<param name="dom" type="tinymce.dom.DOMUtils">
<description>DOMUtils object reference.</description>
</param>
<param name="win" type="Window">
<description>Window to bind the selection object to.</description>
</param>
<param name="serializer" type="tinymce.dom.Serializer">
<description>DOM serialization class to use for getContent.</description>
</param>
</method>
<method name="getContent" summary="Returns the selected contents using the DOM serializer passed in to this class.">
<description>Returns the selected contents using the DOM serializer passed in to this class.
</description>
<param name="s" type="Object">
<description>Optional settings class with for example output format text or html.</description>
</param>
<return type="String">
<description>Selected contents in for example HTML format.</description>
</return>
</method>
<method name="setContent" summary="Sets the current selection to the specified content.">
<description>Sets the current selection to the specified content. If any contents is selected it will be replaced
with the contents passed in to this function. If there is no selection the contents will be inserted
where the caret is placed in the editor/page.
</description>
<param name="h" type="String">
<description>HTML contents to set could also be other formats depending on settings.</description>
</param>
<param name="s" type="Object">
<description>Optional settings object with for example data format.</description>
</param>
</method>
<method name="getStart" summary="Returns the start element of a selection range.">
<description>Returns the start element of a selection range. If the start is in a text
node the parent element will be returned.
</description>
<return type="Element">
<description>Start element of selection range.</description>
</return>
</method>
<method name="getEnd" summary="Returns the end element of a selection range.">
<description>Returns the end element of a selection range. If the end is in a text
node the parent element will be returned.
</description>
<return type="Element">
<description>End element of selection range.</description>
</return>
</method>
<method name="getBookmark" summary="Returns a bookmark location for the current selection.">
<description>Returns a bookmark location for the current selection. This bookmark object
can then be used to restore the selection after some content modification to the document.
</description>
<param name="si" type="Boolean">
<description>Optional state if the bookmark should be simple or not. Default is complex.</description>
</param>
<return type="Object">
<description>Bookmark object, use moveToBookmark with this object to restore the selection.</description>
</return>
</method>
<method name="moveToBookmark" summary="Restores the selection to the specified bookmark.">
<description>Restores the selection to the specified bookmark.
</description>
<param name="bookmark" type="Object">
<description>Bookmark to restore selection from.</description>
</param>
<return type="Boolean">
<description>true/false if it was successful or not.</description>
</return>
</method>
<method name="select" summary="Selects the specified element.">
<description>Selects the specified element. This will place the start and end of the selection range around the element.
</description>
<param name="n" type="Element">
<description>HMTL DOM element to select.</description>
</param>
<param name="c" type="Boolean">
<description>Bool state if the contents should be selected or not on non IE browser.</description>
</param>
<return type="Element">
<description>Selected element the same element as the one that got passed in.</description>
</return>
</method>
<method name="isCollapsed" summary="Returns true/false if the selection range is collapsed or not.">
<description>Returns true/false if the selection range is collapsed or not. Collapsed means if it's a caret or a larger selection.
</description>
<return type="Boolean">
<description>true/false state if the selection range is collapsed or not. Collapsed means if it's a caret or a larger selection.</description>
</return>
</method>
<method name="collapse" summary="Collapse the selection to start or end of range.">
<description>Collapse the selection to start or end of range.
</description>
<param name="b" type="Boolean">
<description>Optional boolean state if to collapse to end or not. Defaults to start.</description>
</param>
</method>
<method name="getSel" summary="Returns the browsers internal selection object.">
<description>Returns the browsers internal selection object.
</description>
<return type="Selection">
<description>Internal browser selection object.</description>
</return>
</method>
<method name="getRng" summary="Returns the browsers internal range object.">
<description>Returns the browsers internal range object.
</description>
<param name="w3c" type="Boolean">
<description>Forces a compatible W3C range on IE.</description>
</param>
<return type="Range">
<description>Internal browser range object.</description>
</return>
</method>
<method name="setRng" summary="Changes the selection to the specified DOM range.">
<description>Changes the selection to the specified DOM range.
</description>
<param name="r" type="Range">
<description>Range to select.</description>
</param>
</method>
<method name="setNode" summary="Sets the current selection to the specified DOM element.">
<description>Sets the current selection to the specified DOM element.
</description>
<param name="n" type="Element">
<description>Element to set as the contents of the selection.</description>
</param>
<return type="Element">
<description>Returns the element that got passed in.</description>
</return>
</method>
<method name="getNode" summary="Returns the currently selected element or the common ancestor element for both start and end of the selection.">
<description>Returns the currently selected element or the common ancestor element for both start and end of the selection.
</description>
<return type="Element">
<description>Currently selected element or common ancestor element.</description>
</return>
</method>
</members>
</class>
<class fullname="tinymce.dom.Serializer" name="Serializer" summary="This class is used to serialize DOM trees into a string.">
<description>This class is used to serialize DOM trees into a string.
Consult the TinyMCE Wiki API for more details and examples on how to use this class.</description>
<members>
<method constructor="true" name="Serializer" summary="Constucts a new DOM serializer class.">
<description>Constucts a new DOM serializer class.
</description>
<param name="s" type="Object">
<description>Optional name/Value collection of settings for the serializer.</description>
</param>
</method>
<method name="setEntities" summary="Sets a list of entities to use for the named entity encoded.">
<description>Sets a list of entities to use for the named entity encoded.
</description>
<param name="s" type="String">
<description>List of entities in the following format: number,name,....</description>
</param>
</method>
<method name="setValidChildRules" summary="Sets the valid child rules.">
<description>Sets the valid child rules. This enables you to specify what elements can be childrens of what parents.
Consult the Wiki for format description on this input.
</description>
<param name="s" type="String">
<description>String with valid child rules.</description>
</param>
</method>
<method name="addValidChildRules" summary="Adds valid child rules.">
<description>Adds valid child rules. This enables you to specify what elements can be childrens of what parents.
Consult the Wiki for format description on this input.
</description>
<param name="s" type="String">
<description>String with valid child rules to add.</description>
</param>
</method>
<method name="setRules" summary="Sets the valid elements rules of the serializer this enables you to specify things like what elements should be outputte...">
<description>Sets the valid elements rules of the serializer this enables you to specify things like what elements should be
outputted and what attributes specific elements might have.
Consult the Wiki for more details on this format.
</description>
<param name="s" type="String">
<description>Valid elements rules string.</description>
</param>
</method>
<method name="addRules" summary="Adds valid elements rules to the serializer this enables you to specify things like what elements should be outputted an...">
<description>Adds valid elements rules to the serializer this enables you to specify things like what elements should be
outputted and what attributes specific elements might have.
Consult the Wiki for more details on this format.
</description>
<param name="s" type="String">
<description>Valid elements rules string to add.</description>
</param>
</method>
<method name="findRule" summary="Finds a rule object by name.">
<description>Finds a rule object by name.
</description>
<param name="n" type="String">
<description>Name to look for in rules collection.</description>
</param>
<return type="Object">
<description>Rule object found or null if it wasn't found.</description>
</return>
</method>
<method name="findAttribRule" summary="Finds an attribute rule object by name.">
<description>Finds an attribute rule object by name.
</description>
<param name="ru" type="Object">
<description>Rule object to search though.</description>
</param>
<param name="n" type="String">
<description>Name of the rule to retrive.</description>
</param>
<return type="Object">
<description>Rule object of the specified attribute.</description>
</return>
</method>
<method name="serialize" summary="Serializes the specified node into a HTML string.">
<description>Serializes the specified node into a HTML string.
</description>
<param name="n" type="Element">
<description>Element/Node to serialize.</description>
</param>
<param name="o" type="Object">
<description>Object to add serialized contents to, this object will also be passed to the event listeners.</description>
</param>
<return type="String">
<description>Serialized HTML contents.</description>
</return>
</method>
</members>
</class>
<class fullname="tinymce.dom.StringWriter" name="StringWriter" summary="This class writes nodes into a string.">
<description>This class writes nodes into a string.</description>
<members>
<method constructor="true" name="StringWriter" summary="Constructs a new StringWriter.">
<description>Constructs a new StringWriter.
</description>
<param name="s" type="Object">
<description>Optional settings object.</description>
</param>
</method>
<method name="reset" summary="Resets the writer so it can be reused the contents of the writer is cleared.">
<description>Resets the writer so it can be reused the contents of the writer is cleared.
</description>
</method>
<method name="writeStartElement" summary="Writes the start of an element like for example: &lt;tag.">
<description>Writes the start of an element like for example: &lt;tag.
</description>
<param name="n" type="String">
<description>Name of element to write.</description>
</param>
</method>
<method name="writeAttribute" summary="Writes an attrubute like for example: myattr=&quot;valie&quot;">
<description>Writes an attrubute like for example: myattr="valie"
</description>
<param name="n" type="String">
<description>Attribute name to write.</description>
</param>
<param name="v" type="String">
<description>Attribute value to write.</description>
</param>
</method>
<method name="writeEndElement" summary="Write the end of a element.">
<description>Write the end of a element. This will add a short end for elements with out children like for example a img element.
</description>
</method>
<method name="writeFullEndElement" summary="Writes the end of a element.">
<description>Writes the end of a element. This will add a full end to the element even if it didn't have any children.
</description>
</method>
<method name="writeText" summary="Writes a text node value.">
<description>Writes a text node value.
</description>
<param name="v" type="String">
<description>Value to append as a text node.</description>
</param>
</method>
<method name="writeCDATA" summary="Writes a CDATA section.">
<description>Writes a CDATA section.
</description>
<param name="v" type="String">
<description>Value to write in CDATA.</description>
</param>
</method>
<method name="writeComment" summary="Writes a comment.">
<description>Writes a comment.
</description>
<param name="v" type="String">
<description>Value of the comment.</description>
</param>
</method>
<method name="writeRaw" summary="String writer specific function.">
<description>String writer specific function. Enables you to write raw contents to the string.
</description>
<param name="v" type="String">
<description>String with raw contents to write.</description>
</param>
</method>
<method name="encode" summary="String writer specific method.">
<description>String writer specific method. This encodes the raw entities of a string.
</description>
<param name="s" type="String">
<description>String to encode.</description>
</param>
<return type="String">
<description>String with entity encoding of the raw elements like &lt;&gt;&amp;".</description>
</return>
</method>
<method name="getContent" summary="Returns a string representation of the elements/nodes written.">
<description>Returns a string representation of the elements/nodes written.
</description>
<return type="String">
<description>String representation of the written elements/nodes.</description>
</return>
</method>
</members>
</class>
<class fullname="tinymce.dom.XMLWriter" name="XMLWriter" summary="This class writes nodes into a XML document structure.">
<description>This class writes nodes into a XML document structure. This structure can then be
serialized down to a HTML string later on.</description>
<members>
<method constructor="true" name="XMLWriter" summary="Constructs a new XMLWriter.">
<description>Constructs a new XMLWriter.
</description>
<param name="s" type="Object">
<description>Optional settings object.</description>
</param>
</method>
<method name="reset" summary="Resets the writer so it can be reused the contents of the writer is cleared.">
<description>Resets the writer so it can be reused the contents of the writer is cleared.
</description>
</method>
<method name="writeStartElement" summary="Writes the start of an element like for example: &lt;tag.">
<description>Writes the start of an element like for example: &lt;tag.
</description>
<param name="n" type="String">
<description>Name of element to write.</description>
</param>
</method>
<method name="writeAttribute" summary="Writes an attrubute like for example: myattr=&quot;valie&quot;">
<description>Writes an attrubute like for example: myattr="valie"
</description>
<param name="n" type="String">
<description>Attribute name to write.</description>
</param>
<param name="v" type="String">
<description>Attribute value to write.</description>
</param>
</method>
<method name="writeEndElement" summary="Write the end of a element.">
<description>Write the end of a element. This will add a short end for elements with out children like for example a img element.
</description>
</method>
<method name="writeFullEndElement" summary="Writes the end of a element.">
<description>Writes the end of a element. This will add a full end to the element even if it didn't have any children.
</description>
</method>
<method name="writeText" summary="Writes a text node value.">
<description>Writes a text node value.
</description>
<param name="v" type="String">
<description>Value to append as a text node.</description>
</param>
</method>
<method name="writeCDATA" summary="Writes a CDATA section.">
<description>Writes a CDATA section.
</description>
<param name="v" type="String">
<description>Value to write in CDATA.</description>
</param>
</method>
<method name="writeComment" summary="Writes a comment.">
<description>Writes a comment.
</description>
<param name="v" type="String">
<description>Value of the comment.</description>
</param>
</method>
<method name="getContent" summary="Returns a string representation of the elements/nodes written.">
<description>Returns a string representation of the elements/nodes written.
</description>
<return type="String">
<description>String representation of the written elements/nodes.</description>
</return>
</method>
</members>
</class>
<members>
<property fullname="tinymce.dom.Event" name="Event" summary="Instance of EventUtils for the current document." type="tinymce.dom.EventUtils">
<description>Instance of EventUtils for the current document.
</description>
</property>
</members>
</namespace>
<namespace fullname="tinymce.ui" name="ui">
<class extends="tinymce.ui.Control" fullname="tinymce.ui.Button" name="Button" summary="This class is used to create a UI button.">
<description>This class is used to create a UI button. A button is basically a link
that is styled to look like a button or icon.
</description>
<members>
<method constructor="true" name="Button" summary="Constructs a new button control instance.">
<description>Constructs a new button control instance.
</description>
<param name="id" type="String">
<description>Control id for the button.</description>
</param>
<param name="s" type="Object">
<description>Optional name/value settings object.</description>
</param>
</method>
<method name="renderHTML" summary="Renders the button as a HTML string.">
<description>Renders the button as a HTML string. This method is much faster than using the DOM and when
creating a whole toolbar with buttons it does make a lot of difference.
</description>
<return type="String">
<description>HTML for the button control element.</description>
</return>
</method>
<method name="postRender" summary="Post render handler.">
<description>Post render handler. This function will be called after the UI has been
rendered so that events can be added.
</description>
</method>
<method inherited-from="tinymce.ui.Control" name="setDisabled"/>
<method inherited-from="tinymce.ui.Control" name="isDisabled"/>
<method inherited-from="tinymce.ui.Control" name="setActive"/>
<method inherited-from="tinymce.ui.Control" name="isActive"/>
<method inherited-from="tinymce.ui.Control" name="setState"/>
<method inherited-from="tinymce.ui.Control" name="isRendered"/>
<method inherited-from="tinymce.ui.Control" name="renderTo"/>
<method inherited-from="tinymce.ui.Control" name="remove"/>
<method inherited-from="tinymce.ui.Control" name="destroy"/>
</members>
<super-classes>
<class-ref class="tinymce.ui.Control"/>
</super-classes>
</class>
<class extends="tinymce.ui.SplitButton" fullname="tinymce.ui.ColorSplitButton" name="ColorSplitButton" summary="This class is used to create UI color split button.">
<description>This class is used to create UI color split button. A color split button will present show a small color picker
when you press the open menu.
</description>
<members>
<method constructor="true" name="ColorSplitButton" summary="Constructs a new color split button control instance.">
<description>Constructs a new color split button control instance.
</description>
<param name="id" type="String">
<description>Control id for the color split button.</description>
</param>
<param name="s" type="Object">
<description>Optional name/value settings object.</description>
</param>
</method>
<property name="settings" summary="Settings object." type="Object">
<description>Settings object.
</description>
</property>
<event name="onShowMenu" summary="Fires when the menu is shown.">
<description>Fires when the menu is shown.
</description>
</event>
<event name="onHideMenu" summary="Fires when the menu is hidden.">
<description>Fires when the menu is hidden.
</description>
</event>
<property name="value" summary="Current color value." type="String">
<description>Current color value.
</description>
</property>
<method name="showMenu" summary="Shows the color menu.">
<description>Shows the color menu. The color menu is a layer places under the button
and displays a table of colors for the user to pick from.
</description>
</method>
<method name="hideMenu" summary="Hides the color menu.">
<description>Hides the color menu. The optional event parameter is used to check where the event occured so it
doesn't close them menu if it was a event inside the menu.
</description>
<param name="e" type="Event">
<description>Optional event object.</description>
</param>
</method>
<method name="renderMenu" summary="Renders the menu to the DOM.">
<description>Renders the menu to the DOM.
</description>
</method>
<method name="setColor" summary="Sets the current color for the control and hides the menu if it should be visible.">
<description>Sets the current color for the control and hides the menu if it should be visible.
</description>
<param name="c" type="String">
<description>Color code value in hex for example: #FF00FF</description>
</param>
</method>
<method name="postRender" summary="Post render event.">
<description>Post render event. This will be executed after the control has been rendered and can be used to
set states, add events to the control etc. It's recommended for subclasses of the control to call this method by using this.parent().
</description>
</method>
<method name="destroy" summary="Destroys the control.">
<description>Destroys the control. This means it will be removed from the DOM and any
events tied to it will also be removed.
</description>
</method>
<method inherited-from="tinymce.ui.SplitButton" name="renderHTML"/>
<method inherited-from="tinymce.ui.Control" name="setDisabled"/>
<method inherited-from="tinymce.ui.Control" name="isDisabled"/>
<method inherited-from="tinymce.ui.Control" name="setActive"/>
<method inherited-from="tinymce.ui.Control" name="isActive"/>
<method inherited-from="tinymce.ui.Control" name="setState"/>
<method inherited-from="tinymce.ui.Control" name="isRendered"/>
<method inherited-from="tinymce.ui.Control" name="renderTo"/>
<method inherited-from="tinymce.ui.Control" name="remove"/>
</members>
<super-classes>
<class-ref class="tinymce.ui.SplitButton"/>
<class-ref class="tinymce.ui.Button"/>
<class-ref class="tinymce.ui.Control"/>
</super-classes>
</class>
<class extends="tinymce.ui.Control" fullname="tinymce.ui.Container" name="Container" summary="This class is the base class for all container controls like toolbars.">
<description>This class is the base class for all container controls like toolbars. This class should not
be instantiated directly other container controls should inherit from this one.
</description>
<members>
<method constructor="true" name="Container" summary="Base contrustor a new container control instance.">
<description>Base contrustor a new container control instance.
</description>
<param name="id" type="String">
<description>Control id to use for the container.</description>
</param>
<param name="s" type="Object">
<description>Optional name/value settings object.</description>
</param>
</method>
<property name="controls" summary="Array of controls added to the container." type="Array">
<description>Array of controls added to the container.
</description>
</property>
<method name="add" summary="Adds a control to the collection of controls for the container.">
<description>Adds a control to the collection of controls for the container.
</description>
<param name="c" type="tinymce.ui.Control">
<description>Control instance to add to the container.</description>
</param>
<return type="tinymce.ui.Control">
<description>Same control instance that got passed in.</description>
</return>
</method>
<method name="get" summary="Returns a control by id from the containers collection.">
<description>Returns a control by id from the containers collection.
</description>
<param name="n" type="String">
<description>Id for the control to retrive.</description>
</param>
<return type="tinymce.ui.Control">
<description>Control instance by the specified name or undefined if it wasn't found.</description>
</return>
</method>
<method inherited-from="tinymce.ui.Control" name="setDisabled"/>
<method inherited-from="tinymce.ui.Control" name="isDisabled"/>
<method inherited-from="tinymce.ui.Control" name="setActive"/>
<method inherited-from="tinymce.ui.Control" name="isActive"/>
<method inherited-from="tinymce.ui.Control" name="setState"/>
<method inherited-from="tinymce.ui.Control" name="isRendered"/>
<method inherited-from="tinymce.ui.Control" name="renderHTML"/>
<method inherited-from="tinymce.ui.Control" name="renderTo"/>
<method inherited-from="tinymce.ui.Control" name="postRender"/>
<method inherited-from="tinymce.ui.Control" name="remove"/>
<method inherited-from="tinymce.ui.Control" name="destroy"/>
</members>
<super-classes>
<class-ref class="tinymce.ui.Control"/>
</super-classes>
</class>
<class fullname="tinymce.ui.Control" name="Control" summary="This class is the base class for all controls like buttons, toolbars, containers.">
<description>This class is the base class for all controls like buttons, toolbars, containers. This class should not
be instantiated directly other controls should inherit from this one.
</description>
<members>
<method constructor="true" name="Control" summary="Constructs a new control instance.">
<description>Constructs a new control instance.
</description>
<param name="id" type="String">
<description>Control id.</description>
</param>
<param name="s" type="Object">
<description>Optional name/value settings object.</description>
</param>
</method>
<method name="setDisabled" summary="Sets the disabled state for the control.">
<description>Sets the disabled state for the control. This will add CSS classes to the
element that contains the control. So that it can be disabled visually.
</description>
<param name="s" type="Boolean">
<description>Boolean state if the control should be disabled or not.</description>
</param>
</method>
<method name="isDisabled" summary="Returns true/false if the control is disabled or not.">
<description>Returns true/false if the control is disabled or not. This is a method since you can then
choose to check some class or some internal bool state in subclasses.
</description>
<return type="Boolean">
<description>true/false if the control is disabled or not.</description>
</return>
</method>
<method name="setActive" summary="Sets the activated state for the control.">
<description>Sets the activated state for the control. This will add CSS classes to the
element that contains the control. So that it can be activated visually.
</description>
<param name="s" type="Boolean">
<description>Boolean state if the control should be activated or not.</description>
</param>
</method>
<method name="isActive" summary="Returns true/false if the control is disabled or not.">
<description>Returns true/false if the control is disabled or not. This is a method since you can then
choose to check some class or some internal bool state in subclasses.
</description>
<return type="Boolean">
<description>true/false if the control is disabled or not.</description>
</return>
</method>
<method name="setState" summary="Sets the specified class state for the control.">
<description>Sets the specified class state for the control.
</description>
<param name="c" type="String">
<description>Class name to add/remove depending on state.</description>
</param>
<param name="s" type="Boolean">
<description>True/false state if the class should be removed or added.</description>
</param>
</method>
<method name="isRendered" summary="Returns true/false if the control has been rendered or not.">
<description>Returns true/false if the control has been rendered or not.
</description>
<return type="Boolean">
<description>State if the control has been rendered or not.</description>
</return>
</method>
<method name="renderHTML" summary="Renders the control as a HTML string.">
<description>Renders the control as a HTML string. This method is much faster than using the DOM and when
creating a whole toolbar with buttons it does make a lot of difference.
</description>
<return type="String">
<description>HTML for the button control element.</description>
</return>
</method>
<method name="renderTo" summary="Renders the control to the specified container element.">
<description>Renders the control to the specified container element.
</description>
<param name="n" type="Element">
<description>HTML DOM element to add control to.</description>
</param>
</method>
<method name="postRender" summary="Post render event.">
<description>Post render event. This will be executed after the control has been rendered and can be used to
set states, add events to the control etc. It's recommended for subclasses of the control to call this method by using this.parent().
</description>
</method>
<method name="remove" summary="Removes the control.">
<description>Removes the control. This means it will be removed from the DOM and any
events tied to it will also be removed.
</description>
</method>
<method name="destroy" summary="Destroys the control will free any memory by removing event listeners etc.">
<description>Destroys the control will free any memory by removing event listeners etc.
</description>
</method>
</members>
</class>
<class extends="tinymce.ui.Menu" fullname="tinymce.ui.DropMenu" name="DropMenu" summary="This class is used to create drop menus, a drop menu can be a context menu, or a menu for a list box or a menu bar.">
<description>This class is used to create drop menus, a drop menu can be a
context menu, or a menu for a list box or a menu bar.
</description>
<members>
<method constructor="true" name="DropMenu" summary="Constructs a new drop menu control instance.">
<description>Constructs a new drop menu control instance.
</description>
<param name="id" type="String">
<description>Button control id for the button.</description>
</param>
<param name="s" type="Object">
<description>Optional name/value settings object.</description>
</param>
</method>
<method name="createMenu" summary="Created a new sub menu for the drop menu control.">
<description>Created a new sub menu for the drop menu control.
</description>
<param name="s" type="Object">
<description>Optional name/value settings object.</description>
</param>
<return type="tinymce.ui.DropMenu">
<description>New drop menu instance.</description>
</return>
</method>
<method name="update" summary="Repaints the menu after new items have been added dynamically.">
<description>Repaints the menu after new items have been added dynamically.
</description>
</method>
<method name="showMenu" summary="Displays the menu at the specified cordinate.">
<description>Displays the menu at the specified cordinate.
</description>
<param name="x" type="Number">
<description>Horizontal position of the menu.</description>
</param>
<param name="y" type="Number">
<description>Vertical position of the menu.</description>
</param>
<param name="px" type="Numner">
<description>Optional parent X position used when menus are cascading.</description>
</param>
</method>
<method name="hideMenu" summary="Hides the displayed menu.">
<description>Hides the displayed menu.
</description>
</method>
<method name="add" summary="Adds a new menu, menu item or sub classes of them to the drop menu.">
<description>Adds a new menu, menu item or sub classes of them to the drop menu.
</description>
<param name="o" type="tinymce.ui.Control">
<description>Menu or menu item to add to the drop menu.</description>
</param>
<return type="tinymce.ui.Control">
<description>Same as the input control, the menu or menu item.</description>
</return>
</method>
<method name="collapse" summary="Collapses the menu, this will hide the menu and all menu items.">
<description>Collapses the menu, this will hide the menu and all menu items.
</description>
<param name="d" type="Boolean">
<description>Optional deep state. If this is set to true all children will be collapsed as well.</description>
</param>
</method>
<method name="remove" summary="Removes a specific sub menu or menu item from the drop menu.">
<description>Removes a specific sub menu or menu item from the drop menu.
</description>
<param name="o" type="tinymce.ui.Control">
<description>Menu item or menu to remove from drop menu.</description>
</param>
<return type="tinymce.ui.Control">
<description>Control instance or null if it wasn't found.</description>
</return>
</method>
<method name="destroy" summary="Destroys the menu.">
<description>Destroys the menu. This will remove the menu from the DOM and any events added to it etc.
</description>
</method>
<method name="renderNode" summary="Renders the specified menu node to the dom.">
<description>Renders the specified menu node to the dom.
</description>
<return type="Element">
<description>Container element for the drop menu.</description>
</return>
</method>
<method inherited-from="tinymce.ui.Menu" name="expand"/>
<method inherited-from="tinymce.ui.Menu" name="isCollapsed"/>
<method inherited-from="tinymce.ui.Menu" name="addSeparator"/>
<method inherited-from="tinymce.ui.Menu" name="addMenu"/>
<method inherited-from="tinymce.ui.Menu" name="hasMenus"/>
<method inherited-from="tinymce.ui.Menu" name="removeAll"/>
<method inherited-from="tinymce.ui.MenuItem" name="setSelected"/>
<method inherited-from="tinymce.ui.MenuItem" name="isSelected"/>
<method inherited-from="tinymce.ui.MenuItem" name="postRender"/>
<method inherited-from="tinymce.ui.Control" name="setDisabled"/>
<method inherited-from="tinymce.ui.Control" name="isDisabled"/>
<method inherited-from="tinymce.ui.Control" name="setActive"/>
<method inherited-from="tinymce.ui.Control" name="isActive"/>
<method inherited-from="tinymce.ui.Control" name="setState"/>
<method inherited-from="tinymce.ui.Control" name="isRendered"/>
<method inherited-from="tinymce.ui.Control" name="renderHTML"/>
<method inherited-from="tinymce.ui.Control" name="renderTo"/>
</members>
<super-classes>
<class-ref class="tinymce.ui.Menu"/>
<class-ref class="tinymce.ui.MenuItem"/>
<class-ref class="tinymce.ui.Control"/>
</super-classes>
</class>
<class extends="tinymce.ui.Control" fullname="tinymce.ui.ListBox" name="ListBox" summary="This class is used to create list boxes/select list.">
<description>This class is used to create list boxes/select list. This one will generate
a non native control. This one has the benefits of having visual items added.
</description>
<members>
<method constructor="true" name="ListBox" summary="Constructs a new listbox control instance.">
<description>Constructs a new listbox control instance.
</description>
<param name="id" type="String">
<description>Control id for the list box.</description>
</param>
<param name="s" type="Object">
<description>Optional name/value settings object.</description>
</param>
</method>
<property name="items" summary="Array of ListBox items." type="Array">
<description>Array of ListBox items.
</description>
</property>
<event name="onChange" summary="Fires when the selection has been changed.">
<description>Fires when the selection has been changed.
</description>
</event>
<event name="onPostRender" summary="Fires after the element has been rendered to DOM.">
<description>Fires after the element has been rendered to DOM.
</description>
</event>
<event name="onAdd" summary="Fires when a new item is added.">
<description>Fires when a new item is added.
</description>
</event>
<event name="onRenderMenu" summary="Fires when the menu gets rendered.">
<description>Fires when the menu gets rendered.
</description>
</event>
<method name="select" summary="Selects a item/option by value.">
<description>Selects a item/option by value. This will both add a visual selection to the
item and change the title of the control to the title of the option.
</description>
<param name="va">
<type fullname="String"/>
<type fullname="function"/>
<description>Value to look for inside the list box or a function selector.</description>
</param>
</method>
<method name="selectByIndex" summary="Selects a item/option by index.">
<description>Selects a item/option by index. This will both add a visual selection to the
item and change the title of the control to the title of the option.
</description>
<param name="idx" type="String">
<description>Index to select, pass -1 to select menu/title of select box.</description>
</param>
</method>
<method name="add" summary="Adds a option item to the list box.">
<description>Adds a option item to the list box.
</description>
<param name="n" type="String">
<description>Title for the new option.</description>
</param>
<param name="v" type="String">
<description>Value for the new option.</description>
</param>
<param name="o" type="Object">
<description>Optional object with settings like for example class.</description>
</param>
</method>
<method name="getLength" summary="Returns the number of items inside the list box.">
<description>Returns the number of items inside the list box.
</description>
<param name="Number" type="Number">
<description>of items inside the list box.</description>
</param>
</method>
<method name="renderHTML" summary="Renders the list box as a HTML string.">
<description>Renders the list box as a HTML string. This method is much faster than using the DOM and when
creating a whole toolbar with buttons it does make a lot of difference.
</description>
<return type="String">
<description>HTML for the list box control element.</description>
</return>
</method>
<method name="showMenu" summary="Displays the drop menu with all items.">
<description>Displays the drop menu with all items.
</description>
</method>
<method name="hideMenu" summary="Hides the drop menu.">
<description>Hides the drop menu.
</description>
</method>
<method name="renderMenu" summary="Renders the menu to the DOM.">
<description>Renders the menu to the DOM.
</description>
</method>
<method name="postRender" summary="Post render event.">
<description>Post render event. This will be executed after the control has been rendered and can be used to
set states, add events to the control etc. It's recommended for subclasses of the control to call this method by using this.parent().
</description>
</method>
<method name="destroy" summary="Destroys the ListBox i.">
<description>Destroys the ListBox i.e. clear memory and events.
</description>
</method>
<method inherited-from="tinymce.ui.Control" name="setDisabled"/>
<method inherited-from="tinymce.ui.Control" name="isDisabled"/>
<method inherited-from="tinymce.ui.Control" name="setActive"/>
<method inherited-from="tinymce.ui.Control" name="isActive"/>
<method inherited-from="tinymce.ui.Control" name="setState"/>
<method inherited-from="tinymce.ui.Control" name="isRendered"/>
<method inherited-from="tinymce.ui.Control" name="renderTo"/>
<method inherited-from="tinymce.ui.Control" name="remove"/>
</members>
<super-classes>
<class-ref class="tinymce.ui.Control"/>
</super-classes>
</class>
<class extends="tinymce.ui.MenuItem" fullname="tinymce.ui.Menu" name="Menu" summary="This class is base class for all menu types like DropMenus etc.">
<description>This class is base class for all menu types like DropMenus etc. This class should not
be instantiated directly other menu controls should inherit from this one.
</description>
<members>
<method constructor="true" name="Menu" summary="Constructs a new button control instance.">
<description>Constructs a new button control instance.
</description>
<param name="id" type="String">
<description>Button control id for the button.</description>
</param>
<param name="s" type="Object">
<description>Optional name/value settings object.</description>
</param>
</method>
<method name="expand" summary="Expands the menu, this will show them menu and all menu items.">
<description>Expands the menu, this will show them menu and all menu items.
</description>
<param name="d" type="Boolean">
<description>Optional deep state. If this is set to true all children will be expanded as well.</description>
</param>
</method>
<method name="collapse" summary="Collapses the menu, this will hide the menu and all menu items.">
<description>Collapses the menu, this will hide the menu and all menu items.
</description>
<param name="d" type="Boolean">
<description>Optional deep state. If this is set to true all children will be collapsed as well.</description>
</param>
</method>
<method name="isCollapsed" summary="Returns true/false if the menu has been collapsed or not.">
<description>Returns true/false if the menu has been collapsed or not.
</description>
<return type="Boolean">
<description>True/false state if the menu has been collapsed or not.</description>
</return>
</method>
<method name="add" summary="Adds a new menu, menu item or sub classes of them to the drop menu.">
<description>Adds a new menu, menu item or sub classes of them to the drop menu.
</description>
<param name="o" type="tinymce.ui.Control">
<description>Menu or menu item to add to the drop menu.</description>
</param>
<return type="tinymce.ui.Control">
<description>Same as the input control, the menu or menu item.</description>
</return>
</method>
<method name="addSeparator" summary="Adds a menu separator between the menu items.">
<description>Adds a menu separator between the menu items.
</description>
<return type="tinymce.ui.MenuItem">
<description>Menu item instance for the separator.</description>
</return>
</method>
<method name="addMenu" summary="Adds a sub menu to the menu.">
<description>Adds a sub menu to the menu.
</description>
<param name="o" type="Object">
<description>Menu control or a object with settings to be created into an control.</description>
</param>
<return type="tinymce.ui.Menu">
<description>Menu control instance passed in or created.</description>
</return>
</method>
<method name="hasMenus" summary="Returns true/false if the menu has sub menus or not.">
<description>Returns true/false if the menu has sub menus or not.
</description>
<return type="Boolean">
<description>True/false state if the menu has sub menues or not.</description>
</return>
</method>
<method name="remove" summary="Removes a specific sub menu or menu item from the menu.">
<description>Removes a specific sub menu or menu item from the menu.
</description>
<param name="o" type="tinymce.ui.Control">
<description>Menu item or menu to remove from menu.</description>
</param>
<return type="tinymce.ui.Control">
<description>Control instance or null if it wasn't found.</description>
</return>
</method>
<method name="removeAll" summary="Removes all menu items and sub menu items from the menu.">
<description>Removes all menu items and sub menu items from the menu.
</description>
</method>
<method name="createMenu" summary="Created a new sub menu for the menu control.">
<description>Created a new sub menu for the menu control.
</description>
<param name="s" type="Object">
<description>Optional name/value settings object.</description>
</param>
<return type="tinymce.ui.Menu">
<description>New drop menu instance.</description>
</return>
</method>
<method inherited-from="tinymce.ui.MenuItem" name="setSelected"/>
<method inherited-from="tinymce.ui.MenuItem" name="isSelected"/>
<method inherited-from="tinymce.ui.MenuItem" name="postRender"/>
<method inherited-from="tinymce.ui.Control" name="setDisabled"/>
<method inherited-from="tinymce.ui.Control" name="isDisabled"/>
<method inherited-from="tinymce.ui.Control" name="setActive"/>
<method inherited-from="tinymce.ui.Control" name="isActive"/>
<method inherited-from="tinymce.ui.Control" name="setState"/>
<method inherited-from="tinymce.ui.Control" name="isRendered"/>
<method inherited-from="tinymce.ui.Control" name="renderHTML"/>
<method inherited-from="tinymce.ui.Control" name="renderTo"/>
<method inherited-from="tinymce.ui.Control" name="destroy"/>
</members>
<super-classes>
<class-ref class="tinymce.ui.MenuItem"/>
<class-ref class="tinymce.ui.Control"/>
</super-classes>
</class>
<class extends="tinymce.ui.Control" fullname="tinymce.ui.MenuButton" name="MenuButton" summary="This class is used to create a UI button.">
<description>This class is used to create a UI button. A button is basically a link
that is styled to look like a button or icon.
</description>
<members>
<method constructor="true" name="MenuButton" summary="Constructs a new split button control instance.">
<description>Constructs a new split button control instance.
</description>
<param name="id" type="String">
<description>Control id for the split button.</description>
</param>
<param name="s" type="Object">
<description>Optional name/value settings object.</description>
</param>
</method>
<event name="onRenderMenu" summary="Fires when the menu is rendered.">
<description>Fires when the menu is rendered.
</description>
</event>
<method name="showMenu" summary="Shows the menu.">
<description>Shows the menu.
</description>
</method>
<method name="renderMenu" summary="Renders the menu to the DOM.">
<description>Renders the menu to the DOM.
</description>
</method>
<method name="hideMenu" summary="Hides the menu.">
<description>Hides the menu. The optional event parameter is used to check where the event occured so it
doesn't close them menu if it was a event inside the menu.
</description>
<param name="e" type="Event">
<description>Optional event object.</description>
</param>
</method>
<method name="postRender" summary="Post render handler.">
<description>Post render handler. This function will be called after the UI has been
rendered so that events can be added.
</description>
</method>
<method inherited-from="tinymce.ui.Control" name="setDisabled"/>
<method inherited-from="tinymce.ui.Control" name="isDisabled"/>
<method inherited-from="tinymce.ui.Control" name="setActive"/>
<method inherited-from="tinymce.ui.Control" name="isActive"/>
<method inherited-from="tinymce.ui.Control" name="setState"/>
<method inherited-from="tinymce.ui.Control" name="isRendered"/>
<method inherited-from="tinymce.ui.Control" name="renderHTML"/>
<method inherited-from="tinymce.ui.Control" name="renderTo"/>
<method inherited-from="tinymce.ui.Control" name="remove"/>
<method inherited-from="tinymce.ui.Control" name="destroy"/>
</members>
<super-classes>
<class-ref class="tinymce.ui.Control"/>
</super-classes>
</class>
<class extends="tinymce.ui.Control" fullname="tinymce.ui.MenuItem" name="MenuItem" summary="This class is base class for all menu item types like DropMenus items etc.">
<description>This class is base class for all menu item types like DropMenus items etc. This class should not
be instantiated directly other menu items should inherit from this one.
</description>
<members>
<method constructor="true" name="MenuItem" summary="Constructs a new button control instance.">
<description>Constructs a new button control instance.
</description>
<param name="id" type="String">
<description>Button control id for the button.</description>
</param>
<param name="s" type="Object">
<description>Optional name/value settings object.</description>
</param>
</method>
<method name="setSelected" summary="Sets the selected state for the control.">
<description>Sets the selected state for the control. This will add CSS classes to the
element that contains the control. So that it can be selected visually.
</description>
<param name="s" type="Boolean">
<description>Boolean state if the control should be selected or not.</description>
</param>
</method>
<method name="isSelected" summary="Returns true/false if the control is selected or not.">
<description>Returns true/false if the control is selected or not.
</description>
<return type="Boolean">
<description>true/false if the control is selected or not.</description>
</return>
</method>
<method name="postRender" summary="Post render handler.">
<description>Post render handler. This function will be called after the UI has been
rendered so that events can be added.
</description>
</method>
<method inherited-from="tinymce.ui.Control" name="setDisabled"/>
<method inherited-from="tinymce.ui.Control" name="isDisabled"/>
<method inherited-from="tinymce.ui.Control" name="setActive"/>
<method inherited-from="tinymce.ui.Control" name="isActive"/>
<method inherited-from="tinymce.ui.Control" name="setState"/>
<method inherited-from="tinymce.ui.Control" name="isRendered"/>
<method inherited-from="tinymce.ui.Control" name="renderHTML"/>
<method inherited-from="tinymce.ui.Control" name="renderTo"/>
<method inherited-from="tinymce.ui.Control" name="remove"/>
<method inherited-from="tinymce.ui.Control" name="destroy"/>
</members>
<super-classes>
<class-ref class="tinymce.ui.Control"/>
</super-classes>
</class>
<class extends="tinymce.ui.ListBox" fullname="tinymce.ui.NativeListBox" name="NativeListBox" summary="This class is used to create list boxes/select list.">
<description>This class is used to create list boxes/select list. This one will generate
a native control the way that the browser produces them by default.
</description>
<members>
<method constructor="true" name="NativeListBox" summary="Constructs a new button control instance.">
<description>Constructs a new button control instance.
</description>
<param name="id" type="String">
<description>Button control id for the button.</description>
</param>
<param name="s" type="Object">
<description>Optional name/value settings object.</description>
</param>
</method>
<method name="setDisabled" summary="Sets the disabled state for the control.">
<description>Sets the disabled state for the control. This will add CSS classes to the
element that contains the control. So that it can be disabled visually.
</description>
<param name="s" type="Boolean">
<description>Boolean state if the control should be disabled or not.</description>
</param>
</method>
<method name="isDisabled" summary="Returns true/false if the control is disabled or not.">
<description>Returns true/false if the control is disabled or not. This is a method since you can then
choose to check some class or some internal bool state in subclasses.
</description>
<return type="Boolean">
<description>true/false if the control is disabled or not.</description>
</return>
</method>
<method name="select" summary="Selects a item/option by value.">
<description>Selects a item/option by value. This will both add a visual selection to the
item and change the title of the control to the title of the option.
</description>
<param name="va">
<type fullname="String"/>
<type fullname="function"/>
<description>Value to look for inside the list box or a function selector.</description>
</param>
</method>
<method name="selectByIndex" summary="Selects a item/option by index.">
<description>Selects a item/option by index. This will both add a visual selection to the
item and change the title of the control to the title of the option.
</description>
<param name="idx" type="String">
<description>Index to select, pass -1 to select menu/title of select box.</description>
</param>
</method>
<method name="add" summary="Adds a option item to the list box.">
<description>Adds a option item to the list box.
</description>
<param name="n" type="String">
<description>Title for the new option.</description>
</param>
<param name="v" type="String">
<description>Value for the new option.</description>
</param>
<param name="o" type="Object">
<description>Optional object with settings like for example class.</description>
</param>
</method>
<method name="getLength" summary="Executes the specified callback function for the menu item.">
<description>Executes the specified callback function for the menu item. In this case when the user clicks the menu item.
</description>
</method>
<method name="renderHTML" summary="Renders the list box as a HTML string.">
<description>Renders the list box as a HTML string. This method is much faster than using the DOM and when
creating a whole toolbar with buttons it does make a lot of difference.
</description>
<return type="String">
<description>HTML for the list box control element.</description>
</return>
</method>
<method name="postRender" summary="Post render handler.">
<description>Post render handler. This function will be called after the UI has been
rendered so that events can be added.
</description>
</method>
<property inherited-from="tinymce.ui.ListBox" name="items"/>
<event inherited-from="tinymce.ui.ListBox" name="onChange"/>
<event inherited-from="tinymce.ui.ListBox" name="onPostRender"/>
<event inherited-from="tinymce.ui.ListBox" name="onAdd"/>
<event inherited-from="tinymce.ui.ListBox" name="onRenderMenu"/>
<method inherited-from="tinymce.ui.ListBox" name="showMenu"/>
<method inherited-from="tinymce.ui.ListBox" name="hideMenu"/>
<method inherited-from="tinymce.ui.ListBox" name="renderMenu"/>
<method inherited-from="tinymce.ui.ListBox" name="destroy"/>
<method inherited-from="tinymce.ui.Control" name="setActive"/>
<method inherited-from="tinymce.ui.Control" name="isActive"/>
<method inherited-from="tinymce.ui.Control" name="setState"/>
<method inherited-from="tinymce.ui.Control" name="isRendered"/>
<method inherited-from="tinymce.ui.Control" name="renderTo"/>
<method inherited-from="tinymce.ui.Control" name="remove"/>
</members>
<super-classes>
<class-ref class="tinymce.ui.ListBox"/>
<class-ref class="tinymce.ui.Control"/>
</super-classes>
</class>
<class extends="tinymce.ui.Control" fullname="tinymce.ui.Separator" name="Separator" summary="This class is used to create vertical separator between other controls.">
<description>This class is used to create vertical separator between other controls.
</description>
<members>
<method constructor="true" name="Separator" summary="Separator constructor.">
<description>Separator constructor.
</description>
<param name="id" type="String">
<description>Control id to use for the Separator.</description>
</param>
<param name="s" type="Object">
<description>Optional name/value settings object.</description>
</param>
</method>
<method name="renderHTML" summary="Renders the separator as a HTML string.">
<description>Renders the separator as a HTML string. This method is much faster than using the DOM and when
creating a whole toolbar with buttons it does make a lot of difference.
</description>
<return type="String">
<description>HTML for the separator control element.</description>
</return>
</method>
<method inherited-from="tinymce.ui.Control" name="setDisabled"/>
<method inherited-from="tinymce.ui.Control" name="isDisabled"/>
<method inherited-from="tinymce.ui.Control" name="setActive"/>
<method inherited-from="tinymce.ui.Control" name="isActive"/>
<method inherited-from="tinymce.ui.Control" name="setState"/>
<method inherited-from="tinymce.ui.Control" name="isRendered"/>
<method inherited-from="tinymce.ui.Control" name="renderTo"/>
<method inherited-from="tinymce.ui.Control" name="postRender"/>
<method inherited-from="tinymce.ui.Control" name="remove"/>
<method inherited-from="tinymce.ui.Control" name="destroy"/>
</members>
<super-classes>
<class-ref class="tinymce.ui.Control"/>
</super-classes>
</class>
<class extends="tinymce.ui.Button" fullname="tinymce.ui.SplitButton" name="SplitButton" summary="This class is used to create a split button.">
<description>This class is used to create a split button. A button with a menu attached to it.
</description>
<members>
<method constructor="true" name="SplitButton" summary="Constructs a new split button control instance.">
<description>Constructs a new split button control instance.
</description>
<param name="id" type="String">
<description>Control id for the split button.</description>
</param>
<param name="s" type="Object">
<description>Optional name/value settings object.</description>
</param>
</method>
<method name="renderHTML" summary="Renders the split button as a HTML string.">
<description>Renders the split button as a HTML string. This method is much faster than using the DOM and when
creating a whole toolbar with buttons it does make a lot of difference.
</description>
<return type="String">
<description>HTML for the split button control element.</description>
</return>
</method>
<method name="postRender" summary="Post render handler.">
<description>Post render handler. This function will be called after the UI has been
rendered so that events can be added.
</description>
</method>
<method inherited-from="tinymce.ui.Control" name="setDisabled"/>
<method inherited-from="tinymce.ui.Control" name="isDisabled"/>
<method inherited-from="tinymce.ui.Control" name="setActive"/>
<method inherited-from="tinymce.ui.Control" name="isActive"/>
<method inherited-from="tinymce.ui.Control" name="setState"/>
<method inherited-from="tinymce.ui.Control" name="isRendered"/>
<method inherited-from="tinymce.ui.Control" name="renderTo"/>
<method inherited-from="tinymce.ui.Control" name="remove"/>
<method inherited-from="tinymce.ui.Control" name="destroy"/>
</members>
<super-classes>
<class-ref class="tinymce.ui.Button"/>
<class-ref class="tinymce.ui.Control"/>
</super-classes>
</class>
<class extends="tinymce.ui.Container" fullname="tinymce.ui.Toolbar" name="Toolbar" summary="This class is used to create toolbars a toolbar is a container for other controls like buttons etc.">
<description>This class is used to create toolbars a toolbar is a container for other controls like buttons etc.
</description>
<members>
<method name="renderHTML" summary="Renders the toolbar as a HTML string.">
<description>Renders the toolbar as a HTML string. This method is much faster than using the DOM and when
creating a whole toolbar with buttons it does make a lot of difference.
</description>
<return type="String">
<description>HTML for the toolbar control.</description>
</return>
</method>
<property inherited-from="tinymce.ui.Container" name="controls"/>
<method inherited-from="tinymce.ui.Container" name="add"/>
<method inherited-from="tinymce.ui.Container" name="get"/>
<method inherited-from="tinymce.ui.Control" name="setDisabled"/>
<method inherited-from="tinymce.ui.Control" name="isDisabled"/>
<method inherited-from="tinymce.ui.Control" name="setActive"/>
<method inherited-from="tinymce.ui.Control" name="isActive"/>
<method inherited-from="tinymce.ui.Control" name="setState"/>
<method inherited-from="tinymce.ui.Control" name="isRendered"/>
<method inherited-from="tinymce.ui.Control" name="renderTo"/>
<method inherited-from="tinymce.ui.Control" name="postRender"/>
<method inherited-from="tinymce.ui.Control" name="remove"/>
<method inherited-from="tinymce.ui.Control" name="destroy"/>
</members>
<super-classes>
<class-ref class="tinymce.ui.Container"/>
<class-ref class="tinymce.ui.Control"/>
</super-classes>
</class>
</namespace>
<namespace fullname="tinymce.util" name="util">
<class fullname="tinymce.util.Cookie" name="Cookie" static="true" summary="This class contains simple cookie manangement functions.">
<description>This class contains simple cookie manangement functions.
</description>
<members>
<method name="getHash" static="true" summary="Parses the specified query string into an name/value object.">
<description>Parses the specified query string into an name/value object.
</description>
<param name="n" type="String">
<description>String to parse into a n Hashtable object.</description>
</param>
<return type="Object">
<description>Name/Value object with items parsed from querystring.</description>
</return>
</method>
<method name="setHash" static="true" summary="Sets a hashtable name/value object to a cookie.">
<description>Sets a hashtable name/value object to a cookie.
</description>
<param name="n" type="String">
<description>Name of the cookie.</description>
</param>
<param name="v" type="Object">
<description>Hashtable object to set as cookie.</description>
</param>
<param name="e" type="Date">
<description>Optional date object for the expiration of the cookie.</description>
</param>
<param name="p" type="String">
<description>Optional path to restrict the cookie to.</description>
</param>
<param name="d" type="String">
<description>Optional domain to restrict the cookie to.</description>
</param>
<param name="s" type="String">
<description>Is the cookie secure or not.</description>
</param>
</method>
<method name="get" static="true" summary="Gets the raw data of a cookie by name.">
<description>Gets the raw data of a cookie by name.
</description>
<param name="n" type="String">
<description>Name of cookie to retrive.</description>
</param>
<return type="String">
<description>Cookie data string.</description>
</return>
</method>
<method name="set" static="true" summary="Sets a raw cookie string.">
<description>Sets a raw cookie string.
</description>
<param name="n" type="String">
<description>Name of the cookie.</description>
</param>
<param name="v" type="String">
<description>Raw cookie data.</description>
</param>
<param name="e" type="Date">
<description>Optional date object for the expiration of the cookie.</description>
</param>
<param name="p" type="String">
<description>Optional path to restrict the cookie to.</description>
</param>
<param name="d" type="String">
<description>Optional domain to restrict the cookie to.</description>
</param>
<param name="s" type="String">
<description>Is the cookie secure or not.</description>
</param>
</method>
<method name="remove" static="true" summary="Removes/deletes a cookie by name.">
<description>Removes/deletes a cookie by name.
</description>
<param name="n" type="String">
<description>Cookie name to remove/delete.</description>
</param>
<param name="p" type="Strong">
<description>Optional path to remove the cookie from.</description>
</param>
</method>
</members>
</class>
<class fullname="tinymce.util.Dispatcher" name="Dispatcher" summary="This class is used to dispatch event to observers/listeners.">
<description>This class is used to dispatch event to observers/listeners.
All internal events inside TinyMCE uses this class.
</description>
<members>
<method constructor="true" name="Dispatcher" summary="Constructs a new event dispatcher object.">
<description>Constructs a new event dispatcher object.
</description>
<param name="s" type="Object">
<description>Optional default execution scope for all observer functions.</description>
</param>
</method>
<method name="add" summary="Add an observer function to be executed when a dispatch call is done.">
<description>Add an observer function to be executed when a dispatch call is done.
</description>
<param name="cb" type="function">
<description>Callback function to execute when a dispatch event occurs.</description>
</param>
<param name="s" type="Object">
<description>Optional execution scope, defaults to the one specified in the class constructor.</description>
</param>
<return type="function">
<description>Returns the same function as the one passed on.</description>
</return>
</method>
<method name="addToTop" summary="Add an observer function to be executed to the top of the list of observers.">
<description>Add an observer function to be executed to the top of the list of observers.
</description>
<param name="cb" type="function">
<description>Callback function to execute when a dispatch event occurs.</description>
</param>
<param name="s" type="Object">
<description>Optional execution scope, defaults to the one specified in the class constructor.</description>
</param>
<return type="function">
<description>Returns the same function as the one passed on.</description>
</return>
</method>
<method name="remove" summary="Removes an observer function.">
<description>Removes an observer function.
</description>
<param name="cb" type="function">
<description>Observer function to remove.</description>
</param>
<return type="function">
<description>The same function that got passed in or null if it wasn't found.</description>
</return>
</method>
<method name="dispatch" summary="Dispatches an event to all observers/listeners.">
<description>Dispatches an event to all observers/listeners.
</description>
<param name=".." type="Object">
<description>Any number of arguments to dispatch.</description>
</param>
<return type="Object">
<description>Last observer functions return value.</description>
</return>
</method>
</members>
</class>
<class fullname="tinymce.util.JSON" name="JSON" static="true" summary="JSON parser and serializer class.">
<description>JSON parser and serializer class.
</description>
<members>
<method name="serialize" static="true" summary="Serializes the specified object as a JSON string.">
<description>Serializes the specified object as a JSON string.
</description>
<param name="o" type="Object">
<description>Object to serialize as a JSON string.</description>
</param>
<return type="string">
<description>JSON string serialized from input.</description>
</return>
</method>
<method name="parse" static="true" summary="Unserializes/parses the specified JSON string into a object.">
<description>Unserializes/parses the specified JSON string into a object.
</description>
<param name="s" type="string">
<description>JSON String to parse into a JavaScript object.</description>
</param>
<return type="Object">
<description>Object from input JSON string or undefined if it failed.</description>
</return>
</method>
</members>
</class>
<class fullname="tinymce.util.JSONRequest" name="JSONRequest" summary="This class enables you to use JSON-RPC to call backend methods.">
<description>This class enables you to use JSON-RPC to call backend methods.
</description>
<members>
<method constructor="true" name="JSONRequest" summary="Constructs a new JSONRequest instance.">
<description>Constructs a new JSONRequest instance.
</description>
<param name="s" type="Object">
<description>Optional settings object.</description>
</param>
</method>
<method name="send" summary="Sends a JSON-RPC call.">
<description>Sends a JSON-RPC call. Consult the Wiki API documentation for more details on what you can pass to this function.
</description>
<param name="o" type="Object">
<description>Call object where there are three field id, method and params this object should also contain callbacks etc.</description>
</param>
</method>
<method name="sendRPC" static="true" summary="Simple helper function to send a JSON-RPC request without the need to initialize an object.">
<description>Simple helper function to send a JSON-RPC request without the need to initialize an object.
Consult the Wiki API documentation for more details on what you can pass to this function.
</description>
<param name="o" type="Object">
<description>Call object where there are three field id, method and params this object should also contain callbacks etc.</description>
</param>
</method>
</members>
</class>
<class fullname="tinymce.util.URI" name="URI" summary="This class handles parsing, modification and serialization of URI/URL strings.">
<description>This class handles parsing, modification and serialization of URI/URL strings.</description>
<members>
<method constructor="true" name="URI" summary="Constucts a new URI instance.">
<description>Constucts a new URI instance.
</description>
<param name="u" type="String">
<description>URI string to parse.</description>
</param>
<param name="s" type="Object">
<description>Optional settings object.</description>
</param>
</method>
<method name="setPath" summary="Sets the internal path part of the URI.">
<description>Sets the internal path part of the URI.
</description>
<param name="p" type="string">
<description>Path string to set.</description>
</param>
</method>
<method name="toRelative" summary="Converts the specified URI into a relative URI based on the current URI instance location.">
<description>Converts the specified URI into a relative URI based on the current URI instance location.
</description>
<param name="u" type="String">
<description>URI to convert into a relative path/URI.</description>
</param>
<return type="String">
<description>Relative URI from the point specified in the current URI instance.</description>
</return>
</method>
<method name="toAbsolute" summary="Converts the specified URI into a absolute URI based on the current URI instance location.">
<description>Converts the specified URI into a absolute URI based on the current URI instance location.
</description>
<param name="u" type="String">
<description>URI to convert into a relative path/URI.</description>
</param>
<param name="nh" type="Boolean">
<description>No host and protocol prefix.</description>
</param>
<return type="String">
<description>Absolute URI from the point specified in the current URI instance.</description>
</return>
</method>
<method name="toRelPath" summary="Converts a absolute path into a relative path.">
<description>Converts a absolute path into a relative path.
</description>
<param name="base" type="String">
<description>Base point to convert the path from.</description>
</param>
<param name="path" type="String">
<description>Absolute path to convert into a relative path.</description>
</param>
</method>
<method name="toAbsPath" summary="Converts a relative path into a absolute path.">
<description>Converts a relative path into a absolute path.
</description>
<param name="base" type="String">
<description>Base point to convert the path from.</description>
</param>
<param name="path" type="String">
<description>Relative path to convert into an absolute path.</description>
</param>
</method>
<method name="getURI" summary="Returns the full URI of the internal structure.">
<description>Returns the full URI of the internal structure.
</description>
<param name="nh" type="Boolean">
<description>Optional no host and protocol part. Defaults to false.</description>
</param>
</method>
</members>
</class>
<class fullname="tinymce.util.XHR" name="XHR" static="true" summary="This class enables you to send XMLHTTPRequests cross browser.">
<description>This class enables you to send XMLHTTPRequests cross browser.</description>
<members>
<method name="send" static="true" summary="Sends a XMLHTTPRequest.">
<description>Sends a XMLHTTPRequest.
Consult the Wiki for details on what settings this method takes.
</description>
<param name="o" type="Object">
<description>Object will target URL, callbacks and other info needed to make the request.</description>
</param>
</method>
</members>
</class>
</namespace>
<members>
<property fullname="tinymce.DOM" name="DOM" summary="Instance of DOMUtils for the current document." type="tinymce.dom.DOMUtils">
<description>Instance of DOMUtils for the current document.
</description>
</property>
</members>
</namespace>
<class fullname="tinyMCEPopup" name="tinyMCEPopup" static="true" summary="TinyMCE popup/dialog helper class.">
<description>TinyMCE popup/dialog helper class. This gives you easy access to the
parent editor instance and a bunch of other things. It's higly recommended
that you load this script into your dialogs.
</description>
<members>
<method name="init" static="true" summary="Initializes the popup this will be called automatically.">
<description>Initializes the popup this will be called automatically.
</description>
</method>
<method name="getWin" static="true" summary="Returns the reference to the parent window that opened the dialog.">
<description>Returns the reference to the parent window that opened the dialog.
</description>
<return type="Window">
<description>Reference to the parent window that opened the dialog.</description>
</return>
</method>
<method name="getWindowArg" static="true" summary="Returns a window argument/parameter by name.">
<description>Returns a window argument/parameter by name.
</description>
<param name="n" type="String">
<description>Name of the window argument to retrive.</description>
</param>
<param name="dv" type="String">
<description>Optional default value to return.</description>
</param>
<return type="String">
<description>Argument value or default value if it wasn't found.</description>
</return>
</method>
<method name="getParam" static="true" summary="Returns a editor parameter/config option value.">
<description>Returns a editor parameter/config option value.
</description>
<param name="n" type="String">
<description>Name of the editor config option to retrive.</description>
</param>
<param name="dv" type="String">
<description>Optional default value to return.</description>
</param>
<return type="String">
<description>Parameter value or default value if it wasn't found.</description>
</return>
</method>
<method name="getLang" static="true" summary="Returns a language item by key.">
<description>Returns a language item by key.
</description>
<param name="n" type="String">
<description>Language item like mydialog.something.</description>
</param>
<param name="dv" type="String">
<description>Optional default value to return.</description>
</param>
<return type="String">
<description>Language value for the item like "my string" or the default value if it wasn't found.</description>
</return>
</method>
<method name="execCommand" static="true" summary="Executed a command on editor that opened the dialog/popup.">
<description>Executed a command on editor that opened the dialog/popup.
</description>
<param name="cmd" type="String">
<description>Command to execute.</description>
</param>
<param name="ui" type="Boolean">
<description>Optional boolean value if the UI for the command should be presented or not.</description>
</param>
<param name="val" type="Object">
<description>Optional value to pass with the comman like an URL.</description>
</param>
<param name="a" type="Object">
<description>Optional arguments object.</description>
</param>
</method>
<method name="resizeToInnerSize" static="true" summary="Resizes the dialog to the inner size of the window.">
<description>Resizes the dialog to the inner size of the window. This is needed since various browsers
have different border sizes on windows.
</description>
</method>
<method name="executeOnLoad" static="true" summary="Will executed the specified string when the page has been loaded.">
<description>Will executed the specified string when the page has been loaded. This function
was added for compatibility with the 2.x branch.
</description>
<param name="s" type="String">
<description>String to evalutate on init.</description>
</param>
</method>
<method name="storeSelection" static="true" summary="Stores the current editor selection for later restoration.">
<description>Stores the current editor selection for later restoration. This can be useful since some browsers
looses it's selection if a control element is selected/focused inside the dialogs.
</description>
</method>
<method name="restoreSelection" static="true" summary="Restores any stored selection.">
<description>Restores any stored selection. This can be useful since some browsers
looses it's selection if a control element is selected/focused inside the dialogs.
</description>
</method>
<method name="requireLangPack" static="true" summary="Loads a specific dialog language pack.">
<description>Loads a specific dialog language pack. If you pass in plugin_url as a arugment
when you open the window it will load the &lt;plugin url&gt;/langs/&lt;code&gt;_dlg.js lang pack file.
</description>
</method>
<method name="pickColor" static="true" summary="Executes a color picker on the specified element id.">
<description>Executes a color picker on the specified element id. When the user
then selects a color it will be set as the value of the specified element.
</description>
<param name="e" type="DOMEvent">
<description>DOM event object.</description>
</param>
<param name="element_id" type="string">
<description>Element id to be filled with the color value from the picker.</description>
</param>
</method>
<method name="openBrowser" static="true" summary="Opens a filebrowser/imagebrowser this will set the output value from the browser as a value on the specified element.">
<description>Opens a filebrowser/imagebrowser this will set the output value from
the browser as a value on the specified element.
</description>
<param name="element_id" type="string">
<description>Id of the element to set value in.</description>
</param>
<param name="type" type="string">
<description>Type of browser to open image/file/flash.</description>
</param>
<param name="option" type="string">
<description>Option name to get the file_broswer_callback function name from.</description>
</param>
</method>
<method name="confirm" static="true" summary="Creates a confirm dialog.">
<description>Creates a confirm dialog. Please don't use the blocking behavior of this
native version use the callback method instead then it can be extended.
</description>
<param name="t" type="String">
<description>Title for the new confirm dialog.</description>
</param>
<param name="cb" type="function">
<description>Callback function to be executed after the user has selected ok or cancel.</description>
</param>
<param name="s" type="Object">
<description>Optional scope to execute the callback in.</description>
</param>
</method>
<method name="alert" static="true" summary="Creates a alert dialog.">
<description>Creates a alert dialog. Please don't use the blocking behavior of this
native version use the callback method instead then it can be extended.
</description>
<param name="t" type="String">
<description>Title for the new alert dialog.</description>
</param>
<param name="cb" type="function">
<description>Callback function to be executed after the user has selected ok.</description>
</param>
<param name="s" type="Object">
<description>Optional scope to execute the callback in.</description>
</param>
</method>
<method name="close" static="true" summary="Closes the current window.">
<description>Closes the current window.
</description>
</method>
</members>
</class>
<class fullname="tinymce" name="tinymce" static="true" summary="Core namespace with core functionality for the TinyMCE API all sub classes will be added to this namespace/object.">
<description>Core namespace with core functionality for the TinyMCE API all sub classes will be added to this namespace/object.
</description>
<example>
<example>// Using each method
tinymce.each([1, 2, 3], function(v, i) {
  console.log(i + '=' + v);
});

// Checking for a specific browser
if (tinymce.isIE)
  console.log("IE");</example>
</example>
<members>
<property final="true" name="isOpera" static="true" summary="Constant that is true if the browser is Opera." type="Boolean">
<description>Constant that is true if the browser is Opera.
</description>
</property>
<property final="true" name="isWebKit" static="true" summary="Constant that is true if the browser is WebKit (Safari/Chrome)." type="Boolean">
<description>Constant that is true if the browser is WebKit (Safari/Chrome).
</description>
</property>
<property final="true" name="isIE" static="true" summary="Constant that is true if the browser is IE." type="Boolean">
<description>Constant that is true if the browser is IE.
</description>
</property>
<property final="true" name="isIE6" static="true" summary="Constant that is true if the browser is IE 6 or older." type="Boolean">
<description>Constant that is true if the browser is IE 6 or older.
</description>
</property>
<property final="true" name="isGecko" static="true" summary="Constant that is true if the browser is Gecko." type="Boolean">
<description>Constant that is true if the browser is Gecko.
</description>
</property>
<property final="true" name="isMac" static="true" summary="Constant that is true if the os is Mac OS." type="Boolean">
<description>Constant that is true if the os is Mac OS.
</description>
</property>
<property final="true" name="isAir" static="true" summary="Constant that is true if the runtime is Adobe Air." type="Boolean">
<description>Constant that is true if the runtime is Adobe Air.
</description>
</property>
<method name="is" static="true" summary="Checks if a object is of a specific type for example an array.">
<description>Checks if a object is of a specific type for example an array.
</description>
<param name="o" type="Object">
<description>Object to check type of.</description>
</param>
<param name="t" type="string">
<description>Optional type to check for.</description>
</param>
<return type="Boolean">
<description>true/false if the object is of the specified type.</description>
</return>
</method>
<method name="each" static="true" summary="Performs an iteration of all items in a collection such as an object or array.">
<description>Performs an iteration of all items in a collection such as an object or array. This method will execure the
callback function for each item in the collection, if the callback returns false the iteration will terminate.
The callback has the following format: cb(value, key_or_index).
</description>
<param name="o" type="Object">
<description>Collection to iterate.</description>
</param>
<param name="cb" type="function">
<description>Callback function to execute for each item.</description>
</param>
<param name="s" type="Object">
<description>Optional scope to execute the callback in.</description>
</param>
<example>
<example>tinymce.each([1, 2, 3], function(v, i) {
  console.log(i + '=' + v);
});</example>
</example>
</method>
<method name="map" static="true" summary="Creates a new array by the return value of each iteration function call.">
<description>Creates a new array by the return value of each iteration function call. This enables you to convert
one array list into another.
</description>
<param name="a" type="Array">
<description>Array of items to iterate.</description>
</param>
<param name="f" type="function">
<description>Function to call for each item. It's return value will be the new value.</description>
</param>
<return type="Array">
<description>Array with new values based on function return values.</description>
</return>
</method>
<method name="grep" static="true" summary="Filters out items from the input array by calling the specified function for each item.">
<description>Filters out items from the input array by calling the specified function for each item.
If the function returns false the item will be excluded if it returns true it will be included.
</description>
<param name="a" type="Array">
<description>Array of items to loop though.</description>
</param>
<param name="f" type="function">
<description>Function to call for each item. Include/exclude depends on it's return value.</description>
</param>
<return type="Array">
<description>New array with values imported and filtered based in input.</description>
</return>
</method>
<method name="inArray" static="true" summary="Returns the index of a value in an array, this method will return -1 if the item wasn't found.">
<description>Returns the index of a value in an array, this method will return -1 if the item wasn't found.
</description>
<param name="a" type="Array">
<description>Array/Object to search for value in.</description>
</param>
<param name="v" type="Object">
<description>Value to check for inside the array.</description>
</param>
<return>
<type fullname="Number"/>
<type fullname="String"/>
<description>Index of item inside the array inside an object. Or -1 if it wasn't found.</description>
</return>
</method>
<method name="extend" static="true" summary="Extends an object with the specified other object(s).">
<description>Extends an object with the specified other object(s).
</description>
<param name="o" type="Object">
<description>Object to extend with new items.</description>
</param>
<param name="e..n" type="Object">
<description>Object(s) to extend the specified object with.</description>
</param>
<return type="Object">
<description>o New extended object, same reference as the input object.</description>
</return>
</method>
<method name="trim" static="true" summary="Removes whitespace from the beginning and end of a string.">
<description>Removes whitespace from the beginning and end of a string.
</description>
<param name="s" type="String">
<description>String to remove whitespace from.</description>
</param>
<return type="String">
<description>New string with removed whitespace.</description>
</return>
</method>
<method name="create" static="true" summary="Creates a class, subclass or static singleton.">
<description>Creates a class, subclass or static singleton.
More details on this method can be found in the Wiki.
</description>
<param name="s" type="String">
<description>Class name, inheritage and prefix.</description>
</param>
<param name="o" type="Object">
<description>Collection of methods to add to the class.</description>
</param>
</method>
<method name="walk" static="true" summary="Executed the specified function for each item in a object tree.">
<description>Executed the specified function for each item in a object tree.
</description>
<param name="o" type="Object">
<description>Object tree to walk though.</description>
</param>
<param name="f" type="function">
<description>Function to call for each item.</description>
</param>
<param name="n" type="String">
<description>Optional name of collection inside the objects to walk for example childNodes.</description>
</param>
<param name="s" type="String">
<description>Optional scope to execute the function in.</description>
</param>
</method>
<method name="createNS" static="true" summary="Creates a namespace on a specific object.">
<description>Creates a namespace on a specific object.
</description>
<param name="n" type="String">
<description>Namespace to create for example a.b.c.d.</description>
</param>
<param name="o" type="Object">
<description>Optional object to add namespace to, defaults to window.</description>
</param>
<return type="Object">
<description>New namespace object the last item in path.</description>
</return>
</method>
<method name="resolve" static="true" summary="Resolves a string and returns the object from a specific structure.">
<description>Resolves a string and returns the object from a specific structure.
</description>
<param name="n" type="String">
<description>Path to resolve for example a.b.c.d.</description>
</param>
<param name="o" type="Object">
<description>Optional object to search though, defaults to window.</description>
</param>
<return type="Object">
<description>Last object in path or null if it couldn't be resolved.</description>
</return>
</method>
<method name="addUnload" static="true" summary="Adds an unload handler to the document.">
<description>Adds an unload handler to the document. This handler will be executed when the document gets unloaded.
This method is useful for dealing with browser memory leaks where it might be vital to remove DOM references etc.
</description>
<param name="f" type="function">
<description>Function to execute before the document gets unloaded.</description>
</param>
<param name="s" type="Object">
<description>Optional scope to execute the function in.</description>
</param>
<return type="function">
<description>Returns the specified unload handler function.</description>
</return>
</method>
<method name="removeUnload" static="true" summary="Removes the specified function form the unload handler list.">
<description>Removes the specified function form the unload handler list.
</description>
<param name="f" type="function">
<description>Function to remove from unload handler list.</description>
</param>
<return type="function">
<description>Removed function name or null if it wasn't found.</description>
</return>
</method>
<method name="explode" static="true" summary="Splits a string but removes the whitespace before and after each value.">
<description>Splits a string but removes the whitespace before and after each value.
</description>
<param name="s" type="string">
<description>String to split.</description>
</param>
<param name="d" type="string">
<description>Delimiter to split by.</description>
</param>
</method>
</members>
</class>
<members>
<property fullname="tinyMCE" name="tinyMCE" summary="Shorter version of tinymce." type="tinymce.EditorManager">
<description>Shorter version of tinymce.EditorManager also added for 2.x compatibility.
</description>
</property>
</members>
</model>
