Icons in the 'stlye_formats' fail to load without any errors/logs.
See original GitHub issueWhat is the current behavior? Describe the bug
Using a CDN path e.g. CloudFront as the baseURL
will not load any Icons under the style_formats. The same icons do work on the toolbar, but not inside the style_formats component.
For example:
Style Formats Icons do not load with -> tinymce.baseURL = ‘https://subdomain.cloudfront.net/assets/tinymce’
Style Formats Icons DO load with -> tinymce.baseURL = ‘https://www.myserver.net/assets/tinymce’
Inspecting the Network tab will show all requests as successful & obviously the files rendered are exactly the same.
Please provide the steps to reproduce and if possible a minimal demo of the problem via fiddle.tiny.cloud or similar.
https://fiddle.tiny.cloud/O7haab/5
I have provided both the CloudFront URL the actual server URL that CloudFront loads assets from.
What is the expected behavior?
If there are any errors in loading the Icons in the Style Formats component, there must be error logs.
Which versions of TinyMCE, and which browser / OS are affected by this issue? Did this work in previous versions of TinyMCE?
Version >= 5.3
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (5 by maintainers)
Top GitHub Comments
Please, I have nothing to do with this issue. 😂 I suggest you thank @lnewson instead!
@lnewson thank you so much for looking into this.
I dug into the theme.js cache thing & it was loading theme.js from V5.2.
My understanding was that if it must be the scripts failing somewhere. Didn’t notice that it’s theme.js managing the placement of icons & it’s not necessarily supposed to be throwing errors.
Thank you for the help, I’ll close this issue 👍