summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-08-30 13:08:12 +0000
committeralecpl <alec@alec.pl>2010-08-30 13:08:12 +0000
commit33bfe1c9dc4ae0f67e458263e25042abb747f389 (patch)
tree5dfce42aca1f276b2fe0bdb6de7e665aaaa9cf45
parent1d8cbca2720171a2f0fe07ec7f34a5c637fae38e (diff)
- Fix JS error when spellchecker feature is disabled
-rw-r--r--program/js/app.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/js/app.js b/program/js/app.js
index 5385c4936..7df194253 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -2847,7 +2847,7 @@ function rcube_webmail()
{
var ed;
if (window.tinyMCE && (ed = tinyMCE.get(this.env.composebody))) {
- if (ed.plugins.spellchecker.active)
+ if (ed.plugins.spellchecker && ed.plugins.spellchecker.active)
ed.execCommand('mceSpellCheck');
}
else if ((ed = this.env.spellcheck) && !this.spellcheck_ready) {