-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
4.2.2, 4.3
-
MOODLE_402_STABLE, MOODLE_403_STABLE
Suppose a user uses Hebrew or French (Français). In that case, TinyMCE cannot load the language file in the lib/editor/tiny/js/tinymce/plugins/help/js/i18n/keynav/* because TinyMCE uses he_IL instead of he like Moodle did.
https://github.com/tinymce/tinymce/blob/main/modules/tinymce/src/plugins/help/i18n/keynav/
Step to reproduce
- Log in as Admin
- Go to Site admin -> General -> Language - Language Packs
- Install Hebrew (he) language pack
- Go to any page with a TinyMCE editor on it
- Open your browser dev console
- Observe the console error about the missing he.js file
There is a fallback to English (en) when the requested file cannot be loaded. To see where the attempted he.js and resulting fallback file is being displayed, do this:
- Observe where the 'Help' menu item is on the Tiny menus
- Using the Moodle user dropdown, change the language to Hebrew
- Now that we are displaying in Hebrew, it will be RTL displayed, choose where 'Help' would be from the Tiny menus
- Choose the only option in that Help dropdown
- A modal window will display the help contents.
- The second sub-menu item down (Keyboard navigation) displays the contents of lib/editor/tiny/js/tinymce/plugins/help/js/i18n/keynav/he_IL.js (note that this .js file is he_IL.js and not he.js which is why we are getting the 404)
- The contents will display in the fallback language of English (en)
- Discovered while testing
-
MDLQA-18416 CLONE - Smoke test on the new TinyMCE editor
- Passed
- links to