Page 1 of 1

Seller signup does not work with CDN enabled - tinymce

PostPosted: Sat Jun 18, 2016 2:17 pm
by carlo.macis_15320
I've been doing testing with Media server CDN enabled and the seller signup form does not work, I get this javascript error:

ReferenceError: tinymce is not defined
v_102_6ccfb42bc42150cb2e6d665b7d0d3075.js:376:501
ReferenceError: tinyMCE is not defined
v_102_6ccfb42bc42150cb2e6d665b7d0d3075.js:972:21

The error seems to be coming from the agile_tiny_mce.js script, so i modified the path with the full url pointing to the cdn server but still does'nt work, any ideas??

Re: Seller signup does not work with CDN enabled - tinymce

PostPosted: Sun Jun 19, 2016 5:11 pm
by shokinro
The error seems to be coming from the agile_tiny_mce.js script, so i modified the path with the full url pointing to the cdn server but still does'nt work, any ideas??

Can you show me original code and code you changed? It could be something related to cache?

Re: Seller signup does not work with CDN enabled - tinymce

PostPosted: Sun Jun 19, 2016 8:15 pm
by carlo.macis_15320
Fixed: I removed root_path from window.tinyMCEPreInit.base and src and seems to work, now pulls the local /tinymce.min.js not from CDN

Code: Select all
var scr = document.getElementsByTagName('script');
var path = scr[scr.length - 1].getAttribute("src");
var path_array = path.split('/');
path_array.splice((path_array.length - 4), 4);
var root_path = path_array.join('/');
window.tinyMCEPreInit = {};
window.tinyMCEPreInit.base = '/js/tiny_mce';
window.tinyMCEPreInit.suffix = '.min';
$('head').append($('<script>').attr('type', 'text/javascript').attr('src', '/js/tiny_mce/tinymce.min.js'));

Re: Seller signup does not work with CDN enabled - tinymce

PostPosted: Mon Jun 20, 2016 2:22 am
by shokinro
I am glad you resolved. thanks for your feedback.