summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--program/js/app.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/program/js/app.js b/program/js/app.js
index 425e71b42..71daec51a 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -2847,7 +2847,8 @@ function rcube_webmail()
{
var ed;
if (window.tinyMCE && (ed = tinyMCE.get(this.env.composebody))) {
- ed.execCommand('mceSpellCheck');
+ if (ed.plugins.spellchecker.active)
+ ed.execCommand('mceSpellCheck');
}
else if ((ed = this.env.spellcheck) && !this.spellcheck_ready) {
$(ed.spell_span).trigger('click');