0 results found

tinymce.AddOnManager

Contribute to this page
Namespacetinymce
ClassAddOnManager

This class handles the loading of themes/plugins or other add-ons and their language packs.

Public Methods

MethodDefined By
add(id:String, o:Theme/Plugin):Theme/Plugin : Adds a instance of the add-on by it's short name.AddOnManager
get(n:String):Theme/Plugin : Returns the specified add on by the short name.AddOnManager
load(n:String, u:String, cb:function, s:Object):void : Loads an add-on from a specific url.AddOnManager
requireLangPack(n:String):void : Loads a language pack for the specified add-on.AddOnManager

Public Events

EventDefined By
onAdd() : Fires when a item is added.AddOnManager

Method details

add

public function add(id:String, o:Theme/Plugin):Theme/Plugin
Adds a instance of the add-on by it's short name.

Parameters

ParamDetail
id:StringShort name/id for the add-on.
o:Theme/PluginTheme or plugin to add.

Returns
Theme/Plugin - The same theme or plugin instance that got passed in.

Example

get

public function get(n:String):Theme/Plugin
Returns the specified add on by the short name.

Parameters

ParamDetail
n:StringAdd-on to look for.

Returns
Theme/Plugin - Theme or plugin add-on instance or undefined.

load

public function load(n:String, u:String, cb:function, s:Object):void
Loads an add-on from a specific url.

Parameters

ParamDetail
n:StringShort name of the add-on that gets loaded.
u:StringURL to the add-on that will get loaded.
cb:functionOptional callback to execute ones the add-on is loaded.
s:ObjectOptional scope to execute the callback in.

Example

requireLangPack

public function requireLangPack(n:String):void
Loads a language pack for the specified add-on.

Parameters

ParamDetail
n:StringShort name of the add-on.

Event details

onAdd

public event onAdd()
Fires when a item is added.

Except as otherwise noted, the content of this page is licensed under the Creative Commons BY-NC-SA 3.0 License, and code samples are licensed under the Apache 2.0 License.