Exclude dynamic URLs in scripts
-
I have a fields that works with TinyMCE on the page. The TinyMCE is loaded from the default WordPress js files:
https://index.cy/wp-includes/js/tinymce/tinymce.min.js
Inside this tinymce.min.js file TinyMCE loads it’s default theme called “modern”. The URL to that theme file is created dynamically using TinyMCE’s document_base_url handle.
GTranslate is adding a language segment to that dynamic URL causing 404 error for the theme file. The script should be loading this file, which exists:
https://index.cy/wp-includes/js/tinymce/themes/modern/theme.min.js
But it’s loading this URL instead (notice the /ru/ segment):
https://index.cy/ru/wp-includes/js/tinymce/themes/modern/theme.min.js
How can I exclude dynamically created URLs from getting translated? I’ve already tried to set the document_base_url for the TinyMCE init but it didn’t work.
The page I need help with: [log in to see the link]
- The topic ‘Exclude dynamic URLs in scripts’ is closed to new replies.