From 33bfe1c9dc4ae0f67e458263e25042abb747f389 Mon Sep 17 00:00:00 2001 From: alecpl Date: Mon, 30 Aug 2010 13:08:12 +0000 Subject: - Fix JS error when spellchecker feature is disabled --- program/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'program/js') 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) { -- cgit v1.2.3