1 /* Import plugin specific language pack */
3 function TinyMCE_zoom_getInfo() {
6 author : 'Moxiecode Systems',
7 authorurl : 'http://tinymce.moxiecode.com',
8 infourl : 'http://tinymce.moxiecode.com/tinymce/docs/plugin_zoom.html',
9 version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion
14 * Returns the HTML contents of the zoom control.
16 function TinyMCE_zoom_getControlHTML(control_name) {
17 if (!tinyMCE.isMSIE || tinyMCE.isMSIE5_0)
20 switch (control_name) {
22 return '<select id="{$editor_id}_formatSelect" name="{$editor_id}_zoomSelect" onfocus="tinyMCE.addSelectAccessibility(event, this, window);" onchange="tinyMCE.execInstanceCommand(\'{$editor_id}\',\'mceZoom\',false,this.options[this.selectedIndex].value);" class="mceSelectList">\
23 <option value="100%">+ 100%</option>\
24 <option value="150%">+ 150%</option>\
25 <option value="200%">+ 200%</option>\
26 <option value="250%">+ 250%</option>\
34 * Executes the mceZoom command.
36 function TinyMCE_zoom_execCommand(editor_id, element, command, user_interface, value) {
40 tinyMCE.getInstanceById(editor_id).contentDocument.body.style.zoom = value;
41 tinyMCE.getInstanceById(editor_id).contentDocument.body.style.mozZoom = value;
45 // Pass to next handler in chain