Wordpress/wp-includes/js/tinymce/mark_loaded_src.js
Andrew Nacin fefbd866d6 Correct [19952]. see #19592.
git-svn-id: https://develop.svn.wordpress.org/trunk@19996 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-25 04:15:08 +00:00

21 lines
802 B
JavaScript

(function(){
if ( typeof tinyMCEPreInit === 'undefined' )
return;
var t = tinyMCEPreInit, baseurl = t.base, markDone = tinymce.ScriptLoader.markDone, lang = t.ref.language,
theme = t.ref.theme, plugins = t.ref.plugins, suffix = t.suffix;
markDone( baseurl+'/langs/'+lang+'.js' );
markDone( baseurl+'/themes/'+theme+'/editor_template'+suffix+'.js' );
markDone( baseurl+'/themes/'+theme+'/langs/'+lang+'.js' );
markDone( baseurl+'/themes/'+theme+'/langs/'+lang+'_dlg.js' );
tinymce.each( plugins.split(','), function(plugin){
if ( plugin && plugin.charAt(0) != '-' ) {
markDone( baseurl+'/plugins/'+plugin+'/editor_plugin'+suffix+'.js' );
markDone( baseurl+'/plugins/'+plugin+'/langs/'+lang+'.js' );
markDone( baseurl+'/plugins/'+plugin+'/langs/'+lang+'_dlg.js' )
}
});
})();