equal
deleted
inserted
replaced
41 languages : 'en', |
41 languages : 'en', |
42 disk_cache : true, |
42 disk_cache : true, |
43 debug : false |
43 debug : false |
44 }; |
44 }; |
45 |
45 |
|
46 if ( !KILL_SWITCH && !DISABLE_MCE ) |
|
47 { |
|
48 if ( IE ) |
|
49 { |
|
50 document.write('<script type="text/javascript" src="' + scriptPath + '/includes/clientside/tinymce/tiny_mce.js"></script>'); |
|
51 } |
|
52 else |
|
53 { |
|
54 var script = document.createElement('script'); |
|
55 script.type="text/javascript"; |
|
56 script.src=scriptPath+"/includes/clientside/tinymce/tiny_mce_gzip.js"; |
|
57 script.onload = function(e) |
|
58 { |
|
59 tinyMCE_GZ.init(enano_tinymce_gz_options); |
|
60 } |
|
61 head.appendChild(script); |
|
62 } |
|
63 } |
46 |
64 |
47 // Check tinyMCE to make sure its init is finished |
65 // Check tinyMCE to make sure its init is finished |
48 function tinymce_preinit_check() |
66 function tinymce_preinit_check() |
49 { |
67 { |
50 if ( typeof(tinyMCE.init) != 'function' ) |
68 if ( typeof(tinyMCE.init) != 'function' ) |
51 return false; |
69 return false; |
52 if ( typeof(tinymce.DOM) != 'object' ) |
70 if ( typeof(tinymce.DOM) != 'object' ) |
53 return false; |
71 return false; |
54 if ( typeof(tinymce.DOM.get) != 'function' ) |
72 if ( typeof(tinymce.DOM.get) != 'function' ) |
|
73 return false; |
|
74 if ( typeof(enano_tinymce_gz_options) != 'object' ) |
55 return false; |
75 return false; |
56 return true; |
76 return true; |
57 } |
77 } |
58 |
78 |
59 var initTinyMCE = function(e) |
79 var initTinyMCE = function(e) |