includes/clientside/static/editor.js
changeset 572 c196e8f336b9
parent 555 ac4c6a7f01d8
child 582 a38876c0793c
--- a/includes/clientside/static/editor.js	Sun Jun 15 00:59:37 2008 -0400
+++ b/includes/clientside/static/editor.js	Sun Jun 15 01:29:30 2008 -0400
@@ -43,6 +43,24 @@
 	debug : false
 };
 
+if ( !KILL_SWITCH && !DISABLE_MCE )
+{
+  if ( IE )
+  {
+    document.write('<script type="text/javascript" src="' + scriptPath + '/includes/clientside/tinymce/tiny_mce.js"></script>');
+  }
+  else
+  {
+    var script = document.createElement('script');
+    script.type="text/javascript";
+    script.src=scriptPath+"/includes/clientside/tinymce/tiny_mce_gzip.js";
+    script.onload = function(e)
+    {
+      tinyMCE_GZ.init(enano_tinymce_gz_options);
+    }
+    head.appendChild(script);
+  }
+}
 
 // Check tinyMCE to make sure its init is finished
 function tinymce_preinit_check()
@@ -53,6 +71,8 @@
     return false;
   if ( typeof(tinymce.DOM.get) != 'function' )
     return false;
+  if ( typeof(enano_tinymce_gz_options) != 'object' )
+    return false;
   return true;
 }