No Code Attached Yet
avatar brianteeman
brianteeman
10 Aug 2025

When a non english language is used then tinyMCE should use that language and when not in debug mode this should be a minified js file.

Currently only the non-minified file is used

You can test this by switching your site admin to french and then open an article for editing. You will see that tinyMCE is now in french

Now inspect the page and you will see that it is using fr.js when it should be using fr.min.js

Image

cc @dgrammatiko

avatar brianteeman brianteeman - open - 10 Aug 2025
avatar joomla-cms-bot joomla-cms-bot - change - 10 Aug 2025
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 10 Aug 2025
avatar Fedik
Fedik - comment - 10 Aug 2025

This is TinyMCE behavior (different than for TinyMCE plugins) https://www.tiny.cloud/docs/tinymce/latest/ui-localization/.

The language code set in the TinyMCE configuration must match the filename of the language file. If the language file is not found, TinyMCE will not load.

I did not found any info that the editor script will look for minified version of the language file.

avatar brianteeman
brianteeman - comment - 10 Aug 2025

The we have been generating minified js files for no reason for very many years :(

avatar dgrammatiko
dgrammatiko - comment - 10 Aug 2025

This is TinyMCE behavior

I could adjust the build scripts to minify the .js file. The non minified files are kinda useless anyways if the editor by design loads only the .js ones…

avatar Fedik
Fedik - comment - 10 Aug 2025

Or can just skip minification for TinyMCE.
It is not much important.

Add a Comment

Login with GitHub to post a comment