adicionando arquivos de media (incluindo o editor tiny mce (LGPL)
[cascardo/eventmanager.git] / media / tiny_mce / plugins / print / editor_plugin_src.js
diff --git a/media/tiny_mce/plugins/print/editor_plugin_src.js b/media/tiny_mce/plugins/print/editor_plugin_src.js
new file mode 100755 (executable)
index 0000000..9478a51
--- /dev/null
@@ -0,0 +1,47 @@
+/**\r
+ * $Id: editor_plugin_src.js 201 2007-02-12 15:56:56Z spocke $\r
+ *\r
+ * @author Moxiecode\r
+ * @copyright Copyright © 2004-2007, Moxiecode Systems AB, All rights reserved.\r
+ */\r
+\r
+/* Import theme        specific language pack */\r
+tinyMCE.importPluginLanguagePack('print');\r
+\r
+var TinyMCE_PrintPlugin = {\r
+       getInfo : function() {\r
+               return {\r
+                       longname : 'Print',\r
+                       author : 'Moxiecode Systems AB',\r
+                       authorurl : 'http://tinymce.moxiecode.com',\r
+                       infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/print',\r
+                       version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion\r
+               };\r
+       },\r
+\r
+       getControlHTML : function(cn)   {\r
+               switch (cn) {\r
+                       case "print":\r
+                               return tinyMCE.getButtonHTML(cn, 'lang_print_desc', '{$pluginurl}/images/print.gif', 'mcePrint');\r
+               }\r
+\r
+               return "";\r
+       },\r
+\r
+       /**\r
+        * Executes     the     search/replace commands.\r
+        */\r
+       execCommand : function(editor_id, element, command,     user_interface, value) {\r
+               // Handle commands\r
+               switch (command) {\r
+                       case "mcePrint":\r
+                               tinyMCE.getInstanceById(editor_id).contentWindow.print();\r
+                               return true;\r
+               }\r
+\r
+               // Pass to next handler in chain\r
+               return false;\r
+       }\r
+};\r
+\r
+tinyMCE.addPlugin("print", TinyMCE_PrintPlugin);\r