| Namespace | tinymce |
| Class | EditorManager |
| Type | Singleton |
| Property | Defined By |
|---|---|
|
[static] Currently active editor instance.
|
EditorManager |
|
editors : Object
[static] Collection of editor instances.
|
EditorManager |
| Method | Defined By |
|---|---|
|
[static] Adds an editor instance to the editor collection.
|
EditorManager |
|
addI18n(p:String, o:Object):void
[static] Adds a language pack, this gets called by the loaded language files like en.
|
EditorManager |
|
execCommand(c:String, u:Boolean, v:String):Boolean
[static] Executes a specific command on the currently active editor.
|
EditorManager |
|
execInstanceCommand(id:String, c:String, u:Boolean, v:String):Boolean
Deprecated: Use the execCommand method of a editor instance instead.
|
EditorManager |
|
[static] Returns a editor instance by id.
|
EditorManager |
|
getInstanceById(id:String):Editor
Deprecated: Use get method instead.
|
EditorManager |
|
init(s:Object):void
[static] Initializes a set of editors.
|
EditorManager |
|
preInit():void
[static] Preinitializes the EditorManager class.
|
EditorManager |
|
[static] Removes a editor instance from the collection.
|
EditorManager |
|
triggerSave():void
[static] Calls the save method on all editor instances in the collection.
|
EditorManager |
public static editors : Object
public static
function add(e:Editor):Editor
| e:Editor | Editor instance to add to the collection. |
public static
function addI18n(p:String, o:Object):void
| p:String | Prefix for the language items. For example en.myplugin |
| o:Object | Name/Value collection with items to add to the language group. |
public static
function execCommand(c:String, u:Boolean, v:String):Boolean
| c:String | Command to perform for example Bold. |
| u:Boolean | Optional boolean state if a UI should be presented for the command or not. |
| v:String | Optional value parameter like for example an URL to a link. |
public static
function execInstanceCommand(id:String, c:String, u:Boolean, v:String):Boolean
| id:String | Editor id to perform the command on. |
| c:String | Command to perform for example Bold. |
| u:Boolean | Optional boolean state if a UI should be presented for the command or not. |
| v:String | Optional value parameter like for example an URL to a link. |
public static
function get(id:String):Editor
| id:String | Editor instance id to return. |
public static
function getInstanceById(id:String):Editor
| id:String | Editor instance id to return. |
public static
function init(s:Object):void
| s:Object | Settings object to be passed to each editor instance. |
public static
function preInit():void
public static
function remove(e:Editor):Editor
| e:Editor | Editor instance to remove. |
public static
function triggerSave():void