TinyMCE loads non-minified plugins in non-debug mode and vice-versa
See original GitHub issueWhen running Umbraco on a live environment (with debug="false"
), I see the following plugin is loaded when TinyMCE/the RTE is initialized in the back-office: /umbraco/lib/tinymce//plugins/autoresize/plugin.js?umb__rnd=7de6bda4e77ab561e3b19a72a59cdb67
. This loads the non-minified version of the plugin (5,58 kB).
When running in debug mode, the minified version is loaded (2,03 kB - 63% smaller size), so this logic seems mixed up: /umbraco/lib/tinymce//plugins/autoresize/plugin.min.js?umb__rnd=64f3d65f34f0673f8fc49a60d0d01780
.
Umbraco version
I am seeing this issue on Umbraco 8.6.2.
Reproduction
Steps to reproduce
Switch the debug attribute in the web.config and check the loaded plugins in the developers tools network tab.
Expected result
Load the normal version in debug mode and minified ones in live/release builds.
Actual result
TinyMCE loads the minified version in debug mode and normal version on live/release builds.
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (7 by maintainers)
We changed a lot about how tinymce loads assets in https://github.com/umbraco/Umbraco-CMS/pull/6147, i can’t recall all of the details but helped @warrenbuckley with the implementation. Just mentioning here as it might be related.
I can reproduce with an RTE in the Grid on vLatest! Not when it’s not in the grid…