* Upgraded TinyMCE to version 2.0RC3. This fixes a conflict with
[citadel.git] / webcit / tiny_mce / plugins / searchreplace / editor_plugin_src.js
index efd5ded08ed5d03053452fec485e832309f702e2..7ac5b214d2f6080b92f915851b5302e77d5561c0 100644 (file)
@@ -1,5 +1,5 @@
 /* Import theme        specific language pack */
-tinyMCE.importPluginLanguagePack('searchreplace', 'en,sv,zh_cn,fa,fr_ca,fr,de,pl,pt_br,cs,nl');
+tinyMCE.importPluginLanguagePack('searchreplace', 'en,sv,zh_cn,fa,fr_ca,fr,de,pl,pt_br,cs,nl,da,he,no,hu');
 
 function TinyMCE_searchreplace_getInfo() {
        return {
@@ -14,10 +14,10 @@ function TinyMCE_searchreplace_getInfo() {
 function TinyMCE_searchreplace_getControlHTML(control_name)    {
        switch (control_name) {
                case "search":
-                       return '<a href="javascript:tinyMCE.execInstanceCommand(\'{$editor_id}\',\'mceSearch\',true);" onmousedown="return false;"><img id="{$editor_id}_search" src="{$pluginurl}/images/search.gif" title="{$lang_searchreplace_search_desc}" width="20" height="20" class="mceButtonNormal" onmouseover="tinyMCE.switchClass(this,\'mceButtonOver\');" onmouseout="tinyMCE.restoreClass(this);" onmousedown="tinyMCE.restoreAndSwitchClass(this,\'mceButtonDown\');" /></a>';
+                       return '<a href="javascript:tinyMCE.execInstanceCommand(\'{$editor_id}\',\'mceSearch\',true);" target="_self" onmousedown="return false;"><img id="{$editor_id}_search" src="{$pluginurl}/images/search.gif" title="{$lang_searchreplace_search_desc}" width="20" height="20" class="mceButtonNormal" onmouseover="tinyMCE.switchClass(this,\'mceButtonOver\');" onmouseout="tinyMCE.restoreClass(this);" onmousedown="tinyMCE.restoreAndSwitchClass(this,\'mceButtonDown\');" /></a>';
 
                case "replace":
-                       return '<a href="javascript:tinyMCE.execInstanceCommand(\'{$editor_id}\',\'mceSearchReplace\',true);" onmousedown="return false;"><img id="{$editor_id}_replace" src="{$pluginurl}/images/replace.gif" title="{$lang_searchreplace_replace_desc}" width="20" height="20" class="mceButtonNormal" onmouseover="tinyMCE.switchClass(this,\'mceButtonOver\');" onmouseout="tinyMCE.restoreClass(this);" onmousedown="tinyMCE.restoreAndSwitchClass(this,\'mceButtonDown\');" /></a>';
+                       return '<a href="javascript:tinyMCE.execInstanceCommand(\'{$editor_id}\',\'mceSearchReplace\',true);" target="_self" onmousedown="return false;"><img id="{$editor_id}_replace" src="{$pluginurl}/images/replace.gif" title="{$lang_searchreplace_replace_desc}" width="20" height="20" class="mceButtonNormal" onmouseover="tinyMCE.switchClass(this,\'mceButtonOver\');" onmouseout="tinyMCE.restoreClass(this);" onmousedown="tinyMCE.restoreAndSwitchClass(this,\'mceButtonDown\');" /></a>';
        }
 
        return "";
@@ -94,10 +94,14 @@ function TinyMCE_searchreplace_execCommand(editor_id, element, command,     user_int
                                        template['file'] = '../../plugins/searchreplace/replace.htm'; // Relative to theme
                                        template['width'] = 320;
                                        template['height'] = 120;
+                                       template['width'] += tinyMCE.getLang('lang_searchreplace_replace_delta_width', 0);
+                                       template['height'] += tinyMCE.getLang('lang_searchreplace_replace_delta_height', 0);
                                } else {
                                        template['file'] = '../../plugins/searchreplace/search.htm'; // Relative to theme
                                        template['width'] = 310;
                                        template['height'] = 105;
+                                       template['width'] += tinyMCE.getLang('lang_searchreplace_search_delta_width', 0);
+                                       template['height'] += tinyMCE.getLang('lang_searchreplace_replace_delta_height', 0);
                                }
 
                                tinyMCE.openWindow(template, value);