# HG changeset patch
# User Dan
# Date 1213507770 14400
# Node ID c196e8f336b92c150c2e39831136024e37d98561
# Parent 66e14e61613ed08b478ee337fd382af39305d17f
Moved some TinyMCE init code to make JS early init work
diff -r 66e14e61613e -r c196e8f336b9 includes/clientside/static/editor.js
--- 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('');
+ }
+ 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;
}
diff -r 66e14e61613e -r c196e8f336b9 includes/clientside/static/enano-lib-basic.js
--- a/includes/clientside/static/enano-lib-basic.js Sun Jun 15 00:59:37 2008 -0400
+++ b/includes/clientside/static/enano-lib-basic.js Sun Jun 15 01:29:30 2008 -0400
@@ -260,24 +260,6 @@
}
var head = document.getElementsByTagName('head')[0];
-if ( !KILL_SWITCH && !DISABLE_MCE )
-{
- if ( IE )
- {
- document.write('');
- }
- 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);
- }
-}
var script = document.createElement('script');
script.type="text/javascript";