]> code.citadel.org Git - citadel.git/blobdiff - webcit/tiny_mce/plugins/_template/editor_plugin_src.js
webcit_before_automake is now the trunk
[citadel.git] / webcit / tiny_mce / plugins / _template / editor_plugin_src.js
index 9378b4914dcaf1774b72727712e4c2a2efcf513b..7e181d10436e724e86ab595cbeadc6098436a8af 100644 (file)
@@ -1,5 +1,5 @@
 /* Import plugin specific language pack */\r
-tinyMCE.importPluginLanguagePack('template', 'en,he,no'); // <- Add a comma separated list of all supported languages\r
+tinyMCE.importPluginLanguagePack('template', 'en,he,nb,ru,ru_KOI8-R,ru_UTF-8,nn,fi,cy,es,is,pl'); // <- Add a comma separated list of all supported languages\r
 \r
 /****\r
  * Steps for creating a plugin from this template:\r
@@ -40,7 +40,8 @@ function TinyMCE_template_initInstance(inst) {
 function TinyMCE_template_getControlHTML(control_name) {\r
        switch (control_name) {\r
                case "template":\r
-                       return '<a href="javascript:tinyMCE.execInstanceCommand(\'{$editor_id}\',\'mceTemplate\', true);" target="_self" onmousedown="return false;"><img id="{$editor_id}_template" src="{$pluginurl}/images/template.gif" title="{$lang_template_desc}" width="20" height="20" class="mceButtonNormal" onmouseover="tinyMCE.switchClass(this,\'mceButtonOver\');" onmouseout="tinyMCE.restoreClass(this);" onmousedown="tinyMCE.restoreAndSwitchClass(this,\'mceButtonDown\');" /></a>';\r
+                       var cmd = 'tinyMCE.execInstanceCommand(\'{$editor_id}\',\'mceTemplate\', true);return false;';\r
+                       return '<a href="javascript:' + cmd + '" onclick="' + cmd + '" target="_self" onmousedown="return false;"><img id="{$editor_id}_template" src="{$pluginurl}/images/template.gif" title="{$lang_template_desc}" width="20" height="20" class="mceButtonNormal" onmouseover="tinyMCE.switchClass(this,\'mceButtonOver\');" onmouseout="tinyMCE.restoreClass(this);" onmousedown="tinyMCE.restoreAndSwitchClass(this,\'mceButtonDown\');" /></a>';\r
        }\r
 \r
        return "";\r