From 03653aaf15863377d5e7492291631dba24b90201 Mon Sep 17 00:00:00 2001 From: alec Date: Mon, 30 Aug 2010 13:08:12 +0000 Subject: - Fix JS error when spellchecker feature is disabled git-svn-id: https://svn.roundcube.net/trunk@3925 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js index 5385c4936..7df194253 100644 --- a/roundcubemail/program/js/app.js +++ b/roundcubemail/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