summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvbenincasa <vbenincasa@gmail.com>2011-05-02 13:20:01 +0000
committervbenincasa <vbenincasa@gmail.com>2011-05-02 13:20:01 +0000
commit90550b94790f74df455bfc34c5277c715c8d5d1a (patch)
tree11cf70cf5794b6c1dfbda3e4304b48856bbb76c7
parent87e58c7a92b4581fabe43d9f5bac7a68acc8d343 (diff)
- Added an example in editor.js to help the skin developers know the possibility of sending config. parameter to TinyMCE
- Small fix to allow the script to work in IE6 and IE7
-rw-r--r--program/js/editor.js2
-rw-r--r--skins/default/functions.js6
2 files changed, 7 insertions, 1 deletions
diff --git a/program/js/editor.js b/program/js/editor.js
index 323381b56..1df0fa2ef 100644
--- a/program/js/editor.js
+++ b/program/js/editor.js
@@ -39,7 +39,7 @@ function rcmail_editor_init(skin_path, editor_lang, spellcheck, mode)
$.extend(conf, {
plugins: 'paste,tabfocus',
theme_advanced_buttons1: 'bold,italic,underline,strikethrough,justifyleft,justifycenter,justifyright,justifyfull,separator,outdent,indent,charmap,hr,link,unlink,code,forecolor',
- theme_advanced_buttons2: ',fontselect,fontsizeselect',
+ theme_advanced_buttons2: ',fontselect,fontsizeselect'
});
else // mail compose
$.extend(conf, {
diff --git a/skins/default/functions.js b/skins/default/functions.js
index c9d63e9ed..65ac39d38 100644
--- a/skins/default/functions.js
+++ b/skins/default/functions.js
@@ -576,3 +576,9 @@ function fit_string_to_size(str, elem, len)
span.parentNode.removeChild(span);
return result;
}
+
+// Optional parameters used by TinyMCE
+var rcmail_editor_settings = {
+ skin : "default", // "default", "o2k7"
+ skin_variant : "" // "", "silver", "black"
+};