- Fix JS error when spellchecker feature is disabled

release-0.6
alecpl 14 years ago
parent 1d8cbca272
commit 33bfe1c9dc

@ -2847,7 +2847,7 @@ function rcube_webmail()
{ {
var ed; var ed;
if (window.tinyMCE && (ed = tinyMCE.get(this.env.composebody))) { 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'); ed.execCommand('mceSpellCheck');
} }
else if ((ed = this.env.spellcheck) && !this.spellcheck_ready) { else if ((ed = this.env.spellcheck) && !this.spellcheck_ready) {

Loading…
Cancel
Save