4 * Copyright 2009, Moxiecode Systems AB
5 * Released under LGPL License.
7 * License: http://tinymce.moxiecode.com/license
8 * Contributing: http://tinymce.moxiecode.com/contributing
13 tinymce.create('tinymce.plugins.ExampleDependencyPlugin', {
15 * Initializes the plugin, this will be executed after the plugin has been created.
16 * This call is done before the editor instance has finished it's initialization so use the onInit event
17 * of the editor instance to intercept that event.
19 * @param {tinymce.Editor} ed Editor instance that the plugin is initialized in.
20 * @param {string} url Absolute URL to where the plugin is located.
22 init : function(ed, url) {
27 * Returns information about the plugin as a name/value array.
28 * The current keys are longname, author, authorurl, infourl and version.
30 * @return {Object} Name/value array containing information about the plugin.
32 getInfo : function() {
34 longname : 'Example Dependency plugin',
35 author : 'Some author',
36 authorurl : 'http://tinymce.moxiecode.com',
37 infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/example_dependency',
44 * Register the plugin, specifying the list of the plugins that this plugin depends on. They are specified in a list, with the list loaded in order.
45 * plugins in this list will be initialised when this plugin is initialized. (before the init method is called).
46 * plugins in a depends list should typically be specified using the short name). If neccesary this can be done
47 * with an object which has the url to the plugin and the shortname.
49 tinymce.PluginManager.add('example_dependency', tinymce.plugins.ExampleDependencyPlugin, ['example']);