]> code.citadel.org Git - citadel.git/blobdiff - webcit/tiny_mce/plugins/fullscreen/editor_plugin_src.js
re-added binary
[citadel.git] / webcit / tiny_mce / plugins / fullscreen / editor_plugin_src.js
diff --git a/webcit/tiny_mce/plugins/fullscreen/editor_plugin_src.js b/webcit/tiny_mce/plugins/fullscreen/editor_plugin_src.js
new file mode 100644 (file)
index 0000000..de6796e
--- /dev/null
@@ -0,0 +1,44 @@
+/* Import plugin specific language pack */\r
+tinyMCE.importPluginLanguagePack('fullscreen', 'en,sv,cs,fr_ca,zh_cn,da,he,no,de,hu');\r
+\r
+function TinyMCE_fullscreen_getInfo() {\r
+       return {\r
+               longname : 'Fullscreen',\r
+               author : 'Moxiecode Systems',\r
+               authorurl : 'http://tinymce.moxiecode.com',\r
+               infourl : 'http://tinymce.moxiecode.com/tinymce/docs/plugin_fullscreen.html',\r
+               version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion\r
+       };\r
+};\r
+\r
+function TinyMCE_fullscreen_getControlHTML(control_name) {\r
+       switch (control_name) {\r
+               case "fullscreen":\r
+                       return '<a href="javascript:tinyMCE.execInstanceCommand(\'{$editor_id}\',\'mceFullScreen\');" onmousedown="return false;"><img id="{$editor_id}_fullscreen" src="{$pluginurl}/images/fullscreen.gif" title="{$lang_fullscreen_desc}" width="20" height="20" class="mceButton' + (tinyMCE.getParam('fullscreen_is_enabled') ? 'Selected' : 'Normal') + '" onmouseover="tinyMCE.switchClass(this,\'mceButtonOver\');" onmouseout="tinyMCE.restoreClass(this);" onmousedown="tinyMCE.restoreAndSwitchClass(this,\'mceButtonDown\');" /></a>';\r
+       }\r
+\r
+       return "";\r
+}\r
+\r
+function TinyMCE_fullscreen_execCommand(editor_id, element, command, user_interface, value) {\r
+       // Handle commands\r
+       switch (command) {\r
+               case "mceFullScreen":\r
+                       if (tinyMCE.getParam('fullscreen_is_enabled')) {\r
+                               // In fullscreen mode\r
+                               window.opener.tinyMCE.execInstanceCommand(tinyMCE.getParam('fullscreen_editor_id'), 'mceSetContent', false, tinyMCE.getContent(editor_id));\r
+                               top.close();\r
+                       } else {\r
+                               tinyMCE.setWindowArg('editor_id', editor_id);\r
+\r
+                               var win = window.open(tinyMCE.baseURL + "/plugins/fullscreen/fullscreen.htm", "mceFullScreenPopup", "fullscreen=yes,menubar=no,toolbar=no,scrollbars=no,resizable=yes,left=0,top=0,width=" + screen.availWidth + ",height="  + screen.availHeight);\r
+                       }\r
+       \r
+                       return true;\r
+       }\r
+\r
+       // Pass to next handler in chain\r
+       return false;\r
+}\r
+\r
+\r