includes/clientside/static/enano-lib-basic.js
changeset 461 717e71109645
parent 436 242353360e37
child 472 bc4b58034f4d
--- a/includes/clientside/static/enano-lib-basic.js	Sun Feb 24 12:52:07 2008 -0500
+++ b/includes/clientside/static/enano-lib-basic.js	Sun Feb 24 17:50:38 2008 -0500
@@ -259,10 +259,17 @@
 var head = document.getElementsByTagName('head')[0];
 if ( !KILL_SWITCH && !DISABLE_MCE )
 {
-  var script = document.createElement('script');
-  script.type="text/javascript";
-  script.src=scriptPath+"/includes/clientside/tinymce/tiny_mce.js";
-  head.appendChild(script);
+  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.js";
+    head.appendChild(script);
+  }
 }
 
 // Do not remove the following comments, they are used by jsres.php.