tags:

views:

41

answers:

1

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.

A: 

Did you try the init setting relative_urls already? This may help.

Thariama
I try relative_urls : false, but nothing better
StoneHeart
did you try "relative_urls: true" ?
Thariama