upgrade tinymce to 1.40

This commit is contained in:
JT Smith 2005-01-30 23:32:49 +00:00
parent 7ceff84e8a
commit 7d9c0268ac
107 changed files with 3717 additions and 492 deletions

View file

@ -1,20 +1,20 @@
/* Import theme specific language pack */
tinyMCE.importPluginLanguagePack('zoom', 'uk,se');
//tinyMCE.importPluginLanguagePack('zoom', 'uk,se,pt');
/**
* Returns the HTML contents of the zoom control.
*/
function TinyMCE_zoom_getControlHTML(control_name) {
if (!tinyMCE.isMSIE)
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%">{$lang_zoom_prefix} 100%</option>\
<option value="150%">{$lang_zoom_prefix} 150%</option>\
<option value="200%">{$lang_zoom_prefix} 200%</option>\
<option value="250%">{$lang_zoom_prefix} 250%</option>\
<option value="100%">+ 100%</option>\
<option value="150%">+ 150%</option>\
<option value="200%">+ 200%</option>\
<option value="250%">+ 250%</option>\
</select>';
}
@ -28,8 +28,8 @@ function TinyMCE_zoom_execCommand(editor_id, element, command, user_interface, v
// Handle commands
switch (command) {
case "mceZoom":
tinyMCE._getInstanceById(editor_id).contentDocument.body.style.zoom = value;
tinyMCE._getInstanceById(editor_id).contentDocument.body.style.mozZoom = value;
tinyMCE.getInstanceById(editor_id).contentDocument.body.style.zoom = value;
tinyMCE.getInstanceById(editor_id).contentDocument.body.style.mozZoom = value;
return true;
}

View file

@ -0,0 +1,3 @@
// UK lang variables
tinyMCELang['lang_zoom_prefix'] = 'Zoom';

View file

@ -2,7 +2,7 @@
--------------------------
About:
Adds a zoom drop list in MSIE, this plugin was mostly created to
Adds a zoom drop list in MSIE5.5+, this plugin was mostly created to
show how to add custom droplists as plugins.
Installation instructions: