PageRenderTime 41ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

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

#
JavaScript | 34 lines | 20 code | 4 blank | 10 comment | 0 complexity | f11547aa114df69b35df319003105e11 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.Print', {
  12. init : function(ed, url) {
  13. ed.addCommand('mcePrint', function() {
  14. ed.getWin().print();
  15. });
  16. ed.addButton('print', {title : 'print.print_desc', cmd : 'mcePrint'});
  17. },
  18. getInfo : function() {
  19. return {
  20. longname : 'Print',
  21. author : 'Moxiecode Systems AB',
  22. authorurl : 'http://tinymce.moxiecode.com',
  23. infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/print',
  24. version : tinymce.majorVersion + "." + tinymce.minorVersion
  25. };
  26. }
  27. });
  28. // Register plugin
  29. tinymce.PluginManager.add('print', tinymce.plugins.Print);
  30. })();