Server IP : 180.180.241.3 / Your IP : 216.73.216.252 Web Server : Microsoft-IIS/7.5 System : Windows NT NETWORK-NHRC 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586 User : IUSR ( 0) PHP Version : 5.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/AppServ/www/news/plugins/editors/tinymce/jscripts/tiny_mce/plugins/zoom/ |
Upload File : |
/** * $Id: editor_plugin_src.js 201 2007-02-12 15:56:56Z spocke $ * * @author Moxiecode * @copyright Copyright © 2004-2007, Moxiecode Systems AB, All rights reserved. */ var TinyMCE_ZoomPlugin = { getInfo : function() { return { longname : 'Zoom', author : 'Moxiecode Systems AB', authorurl : 'http://tinymce.moxiecode.com', infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/zoom', version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion }; }, /** * Returns the HTML contents of the zoom control. */ getControlHTML : function(control_name) { if (!tinyMCE.isMSIE || tinyMCE.isMSIE5_0 || tinyMCE.isOpera) return ""; switch (control_name) { case "zoom": return '<select id="{$editor_id}_zoomSelect" name="{$editor_id}_zoomSelect" onfocus="tinyMCE.addSelectAccessibility(event, this, window);" onchange="tinyMCE.execInstanceCommand(\'{$editor_id}\',\'mceZoom\',false,this.options[this.selectedIndex].value);" class="mceSelectList">' + '<option value="100%">+ 100%</option>' + '<option value="150%">+ 150%</option>' + '<option value="200%">+ 200%</option>' + '<option value="250%">+ 250%</option>' + '</select>'; } return ""; }, /** * Executes the mceZoom command. */ execCommand : function(editor_id, element, command, user_interface, value) { // Handle commands switch (command) { case "mceZoom": tinyMCE.getInstanceById(editor_id).contentDocument.body.style.zoom = value; tinyMCE.getInstanceById(editor_id).contentDocument.body.style.mozZoom = value; return true; } // Pass to next handler in chain return false; } }; tinyMCE.addPlugin("zoom", TinyMCE_ZoomPlugin);