[ Index ] |
|
Code source de eGroupWare 1.2.106-2 |
1 /* Import plugin specific language pack */ 2 tinyMCE.importPluginLanguagePack('fullscreen', 'en,sv'); 3 4 function TinyMCE_fullscreen_getControlHTML(control_name) { 5 switch (control_name) { 6 case "fullscreen": 7 return '<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\');" onclick="tinyMCE.execInstanceCommand(\'{$editor_id}\',\'mceFullScreen\');" />'; 8 } 9 10 return ""; 11 } 12 13 function TinyMCE_fullscreen_execCommand(editor_id, element, command, user_interface, value) { 14 // Handle commands 15 switch (command) { 16 case "mceFullScreen": 17 if (tinyMCE.getParam('fullscreen_is_enabled')) { 18 // In fullscreen mode 19 window.opener.tinyMCE.execInstanceCommand(tinyMCE.getParam('fullscreen_editor_id'), 'mceSetContent', false, tinyMCE.getContent(editor_id)); 20 top.close(); 21 } else { 22 tinyMCE.setWindowArg('editor_id', editor_id); 23 24 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); 25 } 26 27 return true; 28 } 29 30 // Pass to next handler in chain 31 return false; 32 } 33 34
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 17:20:01 2007 | par Balluche grâce à PHPXref 0.7 |