includes/clientside/tinymce/plugins/print/editor_plugin.js
author Dan
Sat, 23 Jun 2007 18:54:16 -0400
changeset 19 5d003b6c9e89
parent 1 fe660c52c48f
child 335 67bd3121a12e
permissions -rw-r--r--
Added demo mode functionality to various parts of Enano (unlocked only with a plugin) and fixed groups table

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);