No Code Attached Yet
avatar infograf768 infograf768 - open - 16 Feb 2022
avatar joomla-cms-bot joomla-cms-bot - change - 16 Feb 2022
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 16 Feb 2022
avatar dgrammatiko
dgrammatiko - comment - 16 Feb 2022

Out of curiosity if you save the tinyMCE settings (in the plugin) it solves the problem?

avatar infograf768
infograf768 - comment - 16 Feb 2022

Nope. No change.

avatar dgrammatiko
dgrammatiko - comment - 16 Feb 2022

If you remove the language then save and then re select the French lang? Does that make any difference?

avatar brianteeman
brianteeman - comment - 16 Feb 2022

looks like the problem is with the autodetect language part as it works when set manually

image

image

avatar dgrammatiko
dgrammatiko - comment - 16 Feb 2022

I think I can see why that is happening, for this mode we have to load the non min files

avatar infograf768
infograf768 - comment - 16 Feb 2022

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.

avatar infograf768
infograf768 - comment - 16 Feb 2022

interesting:

manual setting does work indeed when editing an article for example, but NOT in the tiny plugin editor.

avatar infograf768
infograf768 - comment - 16 Feb 2022
avatar dgrammatiko
dgrammatiko - comment - 16 Feb 2022

@infograf768 could you please change

if ($levelParams->get('lang_mode', 1))

to

		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...

avatar brianteeman
brianteeman - comment - 16 Feb 2022

@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.

avatar brianteeman
brianteeman - comment - 16 Feb 2022
  1. The autodetection of language is as you suspected related to the *.mn.js language file. That works perfectly in debug mode when using the non-minified language
  2. The issue in the plugin itself is and the error is as JM reported. Screenshot shows this.

image

  1. Changing the trait to if ((int) $levelParams->get('lang_mode', 1)) has no impact.

  2. To fix the loading of the minified langauge file when using the editor remove . (JDEBUG ? '' : '.min' from line 175 and 179

  3. A similar change to TinyMCEbuilderField.php will probably work for the plugin view.

avatar dgrammatiko
dgrammatiko - comment - 17 Feb 2022

Check #37075 should fix the field part. The actual editor is working fine for me in article editing no matter if in debug or using different backend language

avatar infograf768 infograf768 - close - 17 Feb 2022
avatar infograf768
infograf768 - comment - 17 Feb 2022

#37075 works for both issues for me.
Closing. Can be reopened if someone has still some issue.

avatar infograf768 infograf768 - change - 17 Feb 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-02-17 09:08:07
Closed_By infograf768
avatar mmsarki
mmsarki - comment - 18 Feb 2022

tested, works very well thanks

Add a Comment

Login with GitHub to post a comment