TinyMCE:API/tinymce.PluginManager/load

From Moxiecode Documentation Wiki

Jump to: navigation, search

Contents

Method: load

Summary

Loads an add-on from a specific url.

Syntax

<void> load(<String> n, <String> u, <function> cb, <Object> s)

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.

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
});
Personal tools