how can I prevent loading depended library from cdn? Solved

User's avatar
扬 陈.
14:29 Jan 16, 2015
I'm in china, can not visit ajax.googleapis.com directly.(This site is ban by GFW). This cause page can not work if not using VPN.

How can I disable loading all depended file from my site instead of CDN? after search archive, I only found 'doksoft_bootstrap_include_url_dir', but this isn't work.

BTW, I already loading jquery, but it's seem dok-plugin ignore all the loaded resource.
Support team avatar
JS+
09:55 Jan 18, 2015
Hello,

Yes, according to documentation you need to use exactly this paramerer: http://doksoft.com/soft/ckeditor-bootstrap/ckeditor-bootstrap-include-plugin.html

If this takes no effect I will test it once more on our environment ant tell you result.

To tell the plugin not to load JQuery just use this paramer:
config.doksoft_bootstrap_include_jquery = false
Its work I will also test in next days and return with the answer.
Support team avatar
JS+
04:24 Jan 20, 2015
Well, I have tested your problems.

To use Bootstrap not from CDN but from your own server please use this parameter:
config.doksoft_bootstrap_include_url = 'http://your-server.com/path/bootstrap_dir';
In documentation on our website this parameter just named incorrectly (in the latest version it was renamed). We will fix documentation soon.

What about disabling including JQuery: it works on my test server. Check the syntax of your code please.