Upgrade TinyMCE to v3.4.5
[citadel.git] / webcit / tiny_mce / plugins / example_dependency / editor_plugin_src.js
1 /**
2  * editor_plugin_src.js
3  *
4  * Copyright 2009, Moxiecode Systems AB
5  * Released under LGPL License.
6  *
7  * License: http://tinymce.moxiecode.com/license
8  * Contributing: http://tinymce.moxiecode.com/contributing
9  */
10
11 (function() {
12
13         tinymce.create('tinymce.plugins.ExampleDependencyPlugin', {
14                 /**
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.
18                  *
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.
21                  */
22                 init : function(ed, url) {
23                 },
24
25
26                 /**
27                  * Returns information about the plugin as a name/value array.
28                  * The current keys are longname, author, authorurl, infourl and version.
29                  *
30                  * @return {Object} Name/value array containing information about the plugin.
31                  */
32                 getInfo : function() {
33                         return {
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',
38                                 version : "1.0"
39                         };
40                 }
41         });
42
43         /**
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.
48          */
49         tinymce.PluginManager.add('example_dependency', tinymce.plugins.ExampleDependencyPlugin, ['example']);
50 })();