Fixed another bad tinyMCE reference in editor.js
authorDan
Wed, 09 Jul 2008 22:49:06 -0400
changeset 622 734af34cd7ad
parent 621 68f8a9cc0a18
child 623 a7a14bc57855
Fixed another bad tinyMCE reference in editor.js
includes/clientside/static/editor.js
--- a/includes/clientside/static/editor.js	Wed Jul 09 22:40:41 2008 -0400
+++ b/includes/clientside/static/editor.js	Wed Jul 09 22:49:06 2008 -0400
@@ -876,7 +876,11 @@
 
 window.ajaxSetEditorLoading = function()
 {
-  var ed = tinyMCE.get('ajaxEditArea');
+  var ed = false;
+  if ( window.tinyMCE )
+  {
+    ed = tinyMCE.get('ajaxEditArea');
+  }
   editor_loading = true;
   if ( ed )
   {
@@ -907,7 +911,11 @@
 window.ajaxUnSetEditorLoading = function()
 {
   editor_loading = false;
-  var ed = tinyMCE.get('ajaxEditArea');
+  var ed = false;
+  if ( window.tinyMCE )
+  {
+    ed = tinyMCE.get('ajaxEditArea');
+  }
   if ( ed )
   {
     ed.setProgressState(0);