PageRenderTime 39ms CodeModel.GetById 13ms RepoModel.GetById 0ms app.codeStats 0ms

/BlogEngine/BlogEngine.NET/editors/tiny_mce_3_4_3_1/plugins/example_dependency/editor_plugin_src.js

#
JavaScript | 50 lines | 16 code | 5 blank | 29 comment | 0 complexity | 473878118b45efe326d335f992ff9943 MD5 | raw file
Possible License(s): LGPL-2.1, Apache-2.0, BSD-3-Clause
  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. (function() {
  11. tinymce.create('tinymce.plugins.ExampleDependencyPlugin', {
  12. /**
  13. * Initializes the plugin, this will be executed after the plugin has been created.
  14. * This call is done before the editor instance has finished it's initialization so use the onInit event
  15. * of the editor instance to intercept that event.
  16. *
  17. * @param {tinymce.Editor} ed Editor instance that the plugin is initialized in.
  18. * @param {string} url Absolute URL to where the plugin is located.
  19. */
  20. init : function(ed, url) {
  21. },
  22. /**
  23. * Returns information about the plugin as a name/value array.
  24. * The current keys are longname, author, authorurl, infourl and version.
  25. *
  26. * @return {Object} Name/value array containing information about the plugin.
  27. */
  28. getInfo : function() {
  29. return {
  30. longname : 'Example Dependency plugin',
  31. author : 'Some author',
  32. authorurl : 'http://tinymce.moxiecode.com',
  33. infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/example_dependency',
  34. version : "1.0"
  35. };
  36. }
  37. });
  38. /**
  39. * 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.
  40. * plugins in this list will be initialised when this plugin is initialized. (before the init method is called).
  41. * plugins in a depends list should typically be specified using the short name). If neccesary this can be done
  42. * with an object which has the url to the plugin and the shortname.
  43. */
  44. tinymce.PluginManager.add('example_dependency', tinymce.plugins.ExampleDependencyPlugin, ['example']);
  45. })();