Dynano: don't try to destroy MCE if window.tinymce is invalid
authorDan
Sat, 14 Mar 2009 15:26:33 -0400
changeset 864 09c3ba4f6fbf
parent 863 195920655c6c
child 865 7f8262b2004a
child 876 aed15c337b72
Dynano: don't try to destroy MCE if window.tinymce is invalid
includes/clientside/static/dynano.js
--- a/includes/clientside/static/dynano.js	Sat Mar 14 15:26:19 2009 -0400
+++ b/includes/clientside/static/dynano.js	Sat Mar 14 15:26:33 2009 -0400
@@ -135,7 +135,7 @@
 {
   //if ( !this.object.dn_is_mce )
   //  return this;
-  if ( this.object.id )
+  if ( this.object.id && window.tinymce )
   {
     // TinyMCE 2.x
     // tinymce.EditorManager.removeMCEControl(this.object.name);