Namespace | tinymce |
Class | ControlManager |
Method | Defined By |
---|---|
ControlManager(ed:Editor, s:Object)
Constructs a new control manager instance.
|
ControlManager |
Adds a control to the control collection inside the manager.
|
ControlManager |
createButton(id:String, s:Object, cc:Object):Control
Creates a button control instance by id.
|
ControlManager |
createColorSplitButton(id:String, s:Object, cc:Object):Control
Creates a color split button control instance by id.
|
ControlManager |
createControl(name:String):Control
Creates a control by name, when a control is created it will automatically add it to the control collection.
|
ControlManager |
createDropMenu(id:String, s:Object, cc:Object):Control
Creates a drop menu control instance by id.
|
ControlManager |
createListBox(id:String, s:Object, cc:Object):Control
Creates a list box control instance by id.
|
ControlManager |
createMenuButton(id:String, s:Object, cc:Object):Control
Creates a menu button control instance by id.
|
ControlManager |
createSeparator(cc:Object):Control
Creates a separator control instance.
|
ControlManager |
createSplitButton(id:String, s:Object, cc:Object):Control
Creates a split button control instance by id.
|
ControlManager |
createToolbar(id:String, s:Object, cc:Object):Control
Creates a toolbar container control instance by id.
|
ControlManager |
destroy():void
Destroy.
|
ControlManager |
Returns a control by id or undefined it it wasn't found.
|
ControlManager |
Sets the active state of a control by id.
|
ControlManager |
setControlType(n:string, c:function):function
Overrides a specific control type with a custom class.
|
ControlManager |
setDisabled(id:String, s:Boolean):Control
Sets the dsiabled state of a control by id.
|
ControlManager |
public
function ControlManager(ed:Editor, s:Object)
ed:Editor | TinyMCE editor instance to add the control to. |
s:Object | Optional settings object for the control manager. |
public
function add(Control:Control):Control
Control:Control | instance to add to collection. |
public
function createButton(id:String, s:Object, cc:Object):Control
id:String | Unique id for the new button instance. For example "bold". |
s:Object | Optional settings object for the control. |
cc:Object | Optional control class to use instead of the default one. |
public
function createColorSplitButton(id:String, s:Object, cc:Object):Control
id:String | Unique id for the new color split button instance. For example "forecolor". |
s:Object | Optional settings object for the control. |
cc:Object | Optional control class to use instead of the default one. |
public
function createControl(name:String):Control
name:String | Control name to create for example "separator". |
public
function createDropMenu(id:String, s:Object, cc:Object):Control
id:String | Unique id for the new dropdown instance. For example "some menu". |
s:Object | Optional settings object for the control. |
cc:Object | Optional control class to use instead of the default one. |
public
function createListBox(id:String, s:Object, cc:Object):Control
id:String | Unique id for the new listbox instance. For example "styles". |
s:Object | Optional settings object for the control. |
cc:Object | Optional control class to use instead of the default one. |
public
function createMenuButton(id:String, s:Object, cc:Object):Control
id:String | Unique id for the new menu button instance. For example "menu1". |
s:Object | Optional settings object for the control. |
cc:Object | Optional control class to use instead of the default one. |
public
function createSeparator(cc:Object):Control
cc:Object | Optional control class to use instead of the default one. |
public
function createSplitButton(id:String, s:Object, cc:Object):Control
id:String | Unique id for the new split button instance. For example "spellchecker". |
s:Object | Optional settings object for the control. |
cc:Object | Optional control class to use instead of the default one. |
public
function createToolbar(id:String, s:Object, cc:Object):Control
id:String | Unique id for the new toolbar container control instance. For example "toolbar1". |
s:Object | Optional settings object for the control. |
cc:Object | Optional control class to use instead of the default one. |
public
function destroy():void
public
function get(id:String):Control
id:String | Control instance name. |
public
function setActive(id:String, s:Boolean):Control
id:String | Control id to set state on. |
s:Boolean | Active state true/false. |
public
function setControlType(n:string, c:function):function
n:string | Name of the control to override for example button or dropmenu. |
c:function | Class reference to use instead of the default one. |