2008-02-11 20:22:22 +01:00
|
|
|
|
2008-07-31 06:01:30 +02:00
|
|
|
tinyMCEPreInit.start = function() {
|
|
|
|
var t = this, sl = tinymce.ScriptLoader, ln = t.mceInit.language, th = t.mceInit.theme, pl = t.mceInit.plugins;
|
2008-02-11 20:22:22 +01:00
|
|
|
|
2008-02-25 20:03:35 +01:00
|
|
|
sl.markDone(t.base + '/langs/' + ln + '.js');
|
2008-02-11 20:22:22 +01:00
|
|
|
|
2008-02-25 20:03:35 +01:00
|
|
|
sl.markDone(t.base + '/themes/' + th + '/langs/' + ln + '.js');
|
|
|
|
sl.markDone(t.base + '/themes/' + th + '/langs/' + ln + '_dlg.js');
|
2008-02-11 20:22:22 +01:00
|
|
|
|
2008-07-31 06:01:30 +02:00
|
|
|
tinymce.each(pl.split(','), function(n) {
|
2008-02-11 20:22:22 +01:00
|
|
|
if (n && n.charAt(0) != '-') {
|
2008-02-25 20:03:35 +01:00
|
|
|
sl.markDone(t.base + '/plugins/' + n + '/langs/' + ln + '.js');
|
|
|
|
sl.markDone(t.base + '/plugins/' + n + '/langs/' + ln + '_dlg.js');
|
2008-02-11 20:22:22 +01:00
|
|
|
}
|
|
|
|
});
|
|
|
|
};
|
2008-07-31 06:01:30 +02:00
|
|
|
|
2008-03-18 07:59:53 +01:00
|
|
|
tinyMCEPreInit.load_ext = function(url,lang) {
|
|
|
|
var sl = tinymce.ScriptLoader;
|
2008-06-04 17:31:14 +02:00
|
|
|
|
2008-03-18 07:59:53 +01:00
|
|
|
sl.markDone(url + '/langs/' + lang + '.js');
|
|
|
|
sl.markDone(url + '/langs/' + lang + '_dlg.js');
|
|
|
|
};
|