includes/clientside/tinymce/plugins/print/editor_plugin.js
author Dan
Sun, 05 Aug 2007 17:10:17 -0400
changeset 82 03c7f5ec1e4c
parent 1 fe660c52c48f
child 335 67bd3121a12e
permissions -rw-r--r--
Fixed IE6 + Admin theme, version typo in installer, and paginator + IE6

tinyMCE.importPluginLanguagePack('print');var TinyMCE_PrintPlugin={getInfo:function(){return{longname:'Print',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/print',version:tinyMCE.majorVersion+"."+tinyMCE.minorVersion}},getControlHTML:function(cn){switch(cn){case"print":return tinyMCE.getButtonHTML(cn,'lang_print_desc','{$pluginurl}/images/print.gif','mcePrint')}return""},execCommand:function(editor_id,element,command,user_interface,value){switch(command){case"mcePrint":tinyMCE.getInstanceById(editor_id).contentWindow.print();return true}return false}};tinyMCE.addPlugin("print",TinyMCE_PrintPlugin);