diff options
author | Aleksander Machniak <alec@alec.pl> | 2014-05-28 15:19:49 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2014-05-28 15:19:49 +0200 |
commit | f56e70bd049bde916c368f3f79df702a73ad63db (patch) | |
tree | 47d38d59bd184dbbdbdb562597a34621853ad436 /program/js/app.js | |
parent | 2f1a81fa4004de46fd796eea087b7824fd45b591 (diff) |
TinyMCE4: Fix spellchecker resume
Diffstat (limited to 'program/js/app.js')
-rw-r--r-- | program/js/app.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/program/js/app.js b/program/js/app.js index b0b2cb15c..b88ed28c3 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -3592,11 +3592,9 @@ function rcube_webmail() { if (ishtml) { var ed = tinymce.get(this.env.composebody); - sp = ed.plugins.spellchecker; - - sp.active = 1; - sp._markWords(data); - ed.nodeChanged(); + ed.settings.spellchecker_callback = function(name, text, done, error) { done(data); }; + ed.execCommand('mceSpellCheck'); + ed.settings.spellchecker_callback = null; } else { var sp = this.env.spellcheck; |