var tinyMCE_GZ = { settings : { themes : '', plugins : '', languages : '', disk_cache : true, page_name : 'tiny_mce_gzip.php', debug : false, suffix : '' }, init : function(s, cb, sc) { var t = this, n, i, nl = document.getElementsByTagName('script'); for (n in s) t.settings[n] = s[n]; s = t.settings; if (window.tinyMCEPreInit) { t.baseURL = tinyMCEPreInit.base; } else { for (i=0; i 10000) { w.clearInterval(ti); if (c < 10000 && x.status == 200) { t.loaded = 1; t.eval(x.responseText); tinymce.dom.Event.domLoaded = true; cb.call(sc || t, x); } ti = x = null; } }, 10); } else t.eval(x.responseText); }, start : function() { var t = this, each = tinymce.each, s = t.settings, ln = s.languages.split(','); tinymce.suffix = s.suffix; function load(u) { tinymce.ScriptLoader.markDone(tinyMCE.baseURI.toAbsolute(u)); }; // Add core languages each(ln, function(c) { if (c) load('langs/' + c + '.js'); }); // Add themes with languages each(s.themes.split(','), function(n) { if (n) { load('themes/' + n + '/editor_template' + s.suffix + '.js'); each (ln, function(c) { if (c) load('themes/' + n + '/langs/' + c + '.js'); }); } }); // Add plugins with languages each(s.plugins.split(','), function(n) { if (n) { load('plugins/' + n + '/editor_plugin' + s.suffix + '.js'); each(ln, function(c) { if (c) load('plugins/' + n + '/langs/' + c + '.js'); }); } }); }, end : function() { }, eval : function(co) { var se = document.createElement('script'); // Create script se.type = 'text/javascript'; se.text = co; // Add it to evaluate it and remove it (document.getElementsByTagName('head')[0] || document.documentElement).appendChild(se); se.parentNode.removeChild(se); } };