2008-02-18 12:11:12 -05:00
|
|
|
tinyMCEPreInit.start = function() {
|
2008-02-25 14:03:35 -05:00
|
|
|
var t = this, each = tinymce.each, s = t.settings, sl = tinymce.ScriptLoader, ln = s.languages, th = s.themes;
|
2008-02-11 14:22:22 -05:00
|
|
|
|
|
|
|
function load(u, sp) {
|
|
|
|
var o;
|
|
|
|
|
|
|
|
if (!sp)
|
2008-02-18 12:11:12 -05:00
|
|
|
u = t.base + u;
|
2008-02-11 14:22:22 -05:00
|
|
|
|
|
|
|
o = {url : u, state : 2};
|
|
|
|
sl.queue.push(o);
|
|
|
|
sl.lookup[o.url] = o;
|
|
|
|
};
|
|
|
|
|
2008-02-25 14:03:35 -05:00
|
|
|
sl.markDone(t.base + '/langs/' + ln + '.js');
|
2008-02-11 14:22:22 -05:00
|
|
|
|
2008-02-25 14:03:35 -05:00
|
|
|
load('/themes/' + th + '/editor_template' + t.suffix + '.js');
|
|
|
|
sl.markDone(t.base + '/themes/' + th + '/langs/' + ln + '.js');
|
|
|
|
sl.markDone(t.base + '/themes/' + th + '/langs/' + ln + '_dlg.js');
|
2008-02-11 14:22:22 -05:00
|
|
|
|
|
|
|
each(s.plugins.split(','), function(n) {
|
|
|
|
if (n && n.charAt(0) != '-') {
|
2008-02-18 12:11:12 -05:00
|
|
|
load('/plugins/' + n + '/editor_plugin' + t.suffix + '.js');
|
2008-02-11 14:22:22 -05:00
|
|
|
|
2008-02-25 14:03:35 -05:00
|
|
|
sl.markDone(t.base + '/plugins/' + n + '/langs/' + ln + '.js');
|
|
|
|
sl.markDone(t.base + '/plugins/' + n + '/langs/' + ln + '_dlg.js');
|
2008-02-11 14:22:22 -05:00
|
|
|
}
|
|
|
|
});
|
|
|
|
};
|