2008-02-11 14:22:22 -05:00
|
|
|
|
2008-07-31 00:01:30 -04: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 14:22:22 -05:00
|
|
|
|
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
|
|
|
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
|
|
|
|
2008-07-31 00:01:30 -04:00
|
|
|
tinymce.each(pl.split(','), function(n) {
|
2008-02-11 14:22:22 -05:00
|
|
|
if (n && n.charAt(0) != '-') {
|
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
|
|
|
}
|
|
|
|
});
|
|
|
|
};
|
2008-07-31 00:01:30 -04:00
|
|
|
|
2008-03-18 02:59:53 -04:00
|
|
|
tinyMCEPreInit.load_ext = function(url,lang) {
|
|
|
|
var sl = tinymce.ScriptLoader;
|
2008-06-04 11:31:14 -04:00
|
|
|
|
2008-03-18 02:59:53 -04:00
|
|
|
sl.markDone(url + '/langs/' + lang + '.js');
|
|
|
|
sl.markDone(url + '/langs/' + lang + '_dlg.js');
|
|
|
|
};
|