upgrading tinymce to 1.41
This commit is contained in:
parent
bd48711603
commit
3d93669497
57 changed files with 2539 additions and 0 deletions
38
www/extras/tinymce/jscripts/tiny_mce/plugins/zoom/editor_plugin_src.js
vendored
Normal file
38
www/extras/tinymce/jscripts/tiny_mce/plugins/zoom/editor_plugin_src.js
vendored
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
/* Import theme specific language pack */
|
||||
//tinyMCE.importPluginLanguagePack('zoom', 'en,sv,pt');
|
||||
|
||||
/**
|
||||
* Returns the HTML contents of the zoom control.
|
||||
*/
|
||||
function TinyMCE_zoom_getControlHTML(control_name) {
|
||||
if (!tinyMCE.isMSIE || tinyMCE.isMSIE5_0)
|
||||
return "";
|
||||
|
||||
switch (control_name) {
|
||||
case "zoom":
|
||||
return '<select id="{$editor_id}_formatSelect" name="{$editor_id}_zoomSelect" 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.
|
||||
*/
|
||||
function TinyMCE_zoom_execCommand(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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue