Seller signup does not work with CDN enabled - tinymce

In this forum you can post anything related to PrestaShop Modules/Addons from Agile Addons-Modules.Com.

If you need support for any module/addon from Agile Addons-Module.Com, please post it here. We will respond as soon as possible. Usually within one business day.

Please indicate the PrestaShop version, product name. product version, and if possible your order # to get a prompt response.

Moderator: jeffayao_1666

Seller signup does not work with CDN enabled - tinymce

Postby carlo.macis_15320 » Sat Jun 18, 2016 2:17 pm

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??
carlo.macis_15320
 
Posts: 40
Joined: Wed Feb 24, 2016 3:59 pm

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

Postby shokinro » Sun Jun 19, 2016 5:11 pm

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?
Follow us at Twitter Like us on Facebook Watch our Tutorial Videos on YouTube
shokinro
Site Admin
 
Posts: 3091
Joined: Sat Jun 25, 2011 3:08 pm

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

Postby carlo.macis_15320 » Sun Jun 19, 2016 8:15 pm

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'));
carlo.macis_15320
 
Posts: 40
Joined: Wed Feb 24, 2016 3:59 pm

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

Postby shokinro » Mon Jun 20, 2016 2:22 am

I am glad you resolved. thanks for your feedback.
Follow us at Twitter Like us on Facebook Watch our Tutorial Videos on YouTube
shokinro
Site Admin
 
Posts: 3091
Joined: Sat Jun 25, 2011 3:08 pm


Return to Support forum - Agile PrestaShop Modules/Addons

Who is online

Users browsing this forum: No registered users and 11 guests