This is my script:
$.ajaxSetup({async: false});
$.getScript('http://www.mydomain.com/dev/js/tinymce/tiny_mce.js', function(){
tinyMCE.init({
document_base_url : "http://www.mydomain.com/dev/js/tinymce/",
[...],
});
});
$.ajaxSetup({async: true});
It load tiny_mce.js success. But when init tinymce in callback, tinymce load 2 following scripts with incorrect path:
http://www.mydomain.com/dev//langs/en.js
http://www.mydomain.com/dev//themes/advanced/editor_template.js
Even I use document_base_url or not, tinymce still load above path.