summaryrefslogtreecommitdiff
path: root/program/js/editor.js
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-05-05 15:46:29 +0200
committerAleksander Machniak <alec@alec.pl>2014-05-05 15:46:29 +0200
commit4d02384dcaba8806113a5554ea2faf2c011d2f4e (patch)
tree4c016fe1bcd65d1a4bb4e254f46af51d1b5574dc /program/js/editor.js
parentccb41747d994b0ba1ce0a2b9dd6456fccff247c3 (diff)
Fix Spell button with TinyMCE4
Diffstat (limited to 'program/js/editor.js')
-rw-r--r--program/js/editor.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/program/js/editor.js b/program/js/editor.js
index b2d13f965..014f61e1c 100644
--- a/program/js/editor.js
+++ b/program/js/editor.js
@@ -51,15 +51,16 @@ function rcmail_editor_init(config)
+ ' | link unlink table | emoticons charmap image media | code searchreplace undo redo',
spellchecker_rpc_url: '../../../../../?_task=utils&_action=spell_html&_remote=1',
spellchecker_enable_learn_rpc: config.spelldict, //TODO
+ spellchecker_language: rcmail.env.spell_lang,
accessibility_focus: false
});
conf.setup = function(ed) {
ed.on('init', rcmail_editor_callback);
// add handler for spellcheck button state update
- ed.on('ProgressState', function(args) {
- if (!args.state)
- rcmail.spellcheck_state();
+ ed.on('SpellcheckStart SpellcheckEnd', function(args) {
+ rcmail.env.spellcheck_active = args.type == 'spellcheckstart';
+ rcmail.spellcheck_state();
});
ed.on('keypress', function() {
rcmail.compose_type_activity++;