TinyMCE:API/tinymce.PluginManager/load
From Moxiecode Documentation Wiki
Contents |
[edit]
Method: load
[edit]
Summary
Loads an add-on from a specific url.
[edit]
Syntax
<void> load(<String> n, <String> u, <function> cb, <Object> s)
[edit]
Parameters
- n
- Short name of the add-on that gets loaded.
- u
- URL to the add-on that will get loaded. Path can also be relative from where the tiny_mce.js file is located.
- cb
- Optional callback to execute ones the add-on is loaded.
- s
- Optional scope to execute the callback in.
[edit]
Examples
// Loads a plugin from an external URL
tinymce.PluginManager.load('myplugin', '/some/dir/someplugin/editor_plugin.js');
// Initialize TinyMCE
tinyMCE.init({
...
plugins : '-myplugin' // Don't try to load it again
});
