From 33bfe1c9dc4ae0f67e458263e25042abb747f389 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Mon, 30 Aug 2010 09:08:12 -0400
Subject: [PATCH] - Fix JS error when spellchecker feature is disabled

---
 program/js/app.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/program/js/app.js b/program/js/app.js
index 5385c49..7df1942 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -2847,7 +2847,7 @@
   {
     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) {

--
Gitblit v1.9.1