summaryrefslogtreecommitdiff
path: root/program/js
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-05-28 15:19:49 +0200
committerAleksander Machniak <alec@alec.pl>2014-05-28 15:19:49 +0200
commitf56e70bd049bde916c368f3f79df702a73ad63db (patch)
tree47d38d59bd184dbbdbdb562597a34621853ad436 /program/js
parent2f1a81fa4004de46fd796eea087b7824fd45b591 (diff)
TinyMCE4: Fix spellchecker resume
Diffstat (limited to 'program/js')
-rw-r--r--program/js/app.js8
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;