Tinymce does not use admin or site language
Uncaught ReferenceError: tinymce is not defined
http://localhost:8888/joomla41/media/vendor/tinymce/langs/fr.min.js?e68e3c297f9f548ffc9fec71ecc6078b:1
fr.min.js:1:1
http://localhost:8888/joomla41/media/vendor/tinymce/langs/fr.min.js?e68e3c297f9f548ffc9fec71ecc6078b:1
Labels |
Added:
No Code Attached Yet
|
Nope. No change.
If you remove the language then save and then re select the French lang? Does that make any difference?
I think I can see why that is happening, for this mode we have to load the non min files
tested setting it off, saving and then setting it on again.
No change. Using manual setting same result.
HINT: same issue in 4.0-dev of 3 weeks ago.
interesting:
manual setting does work indeed when editing an article for example, but NOT in the tiny plugin editor.
Uncaught ReferenceError: tinymce is not defined
http://localhost:8888/joomla41/media/vendor/tinymce/langs/fr.js?2ec79d5d7690c330f0817f1569b547a1:1
@infograf768 could you please change
if ((int) $levelParams->get('lang_mode', 1))
If that doesn't make any difference could you var_dump($language->getTag());die;
after that if conditional?
FWIW I cannot replicate this, so maybe describing what's the site setup might help, is it multilingual, what's the backend language, etc...
@dgrammatiko
I installed french in my test site. Set it to be the admin language
Then went to the tiny mce plugin and made the change to force usng french and saved
Then I open an article for editing and tinmyce is in french
Now I went back to the plugin settings (still in french) and the drag/drop area of the plugin configuration is in english.
I checked in Joomla 3 and it was in french then.
I got distracted so I didnt make a note of the console error message at the time. I will test again.
Changing the trait to if ((int) $levelParams->get('lang_mode', 1))
has no impact.
To fix the loading of the minified langauge file when using the editor remove . (JDEBUG ? '' : '.min'
from line 175 and 179
A similar change to TinyMCEbuilderField.php will probably work for the plugin view.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-02-17 09:08:07 |
Closed_By | ⇒ | infograf768 |
tested, works very well thanks
Out of curiosity if you save the tinyMCE settings (in the plugin) it solves the problem?