Take a lookout at this repository: https://github.com/7khatcode/Q2ACustomCkEditor.
I updated all packages to the latest version and set UI and content language to fa https://github.com/7khatcode/Q2ACustomCkEditor/blob/master/src/ckeditor.js
But when I use this editor the MathType and ChemType window is empty.

Error message :
editor?lang=[object Object]&stats-editor=CKEditor5&stats-mode=xml&stats-version=7.14.0.1421:1 Uncaught TypeError: language.toLowerCase is not a function
at com.wiris.editor.EditorModel.vh2.com.wiris.editor.EditorModel.normalizeLanguage (editor?lang=[object Object]&stats-editor=CKEditor5&stats-mode=xml&stats-version=7.14.0.1421:1)
at com.wiris.editor.EditorModel.vh2.com.wiris.editor.EditorModel.setParam (editor?lang=[object Object]&stats-editor=CKEditor5&stats-mode=xml&stats-version=7.14.0.1421:1)
at com.wiris.editor.EditorModel.vh2.com.wiris.editor.EditorModel.setParams (editor?lang=[object Object]&stats-editor=CKEditor5&stats-mode=xml&stats-version=7.14.0.1421:1)
at new com.wiris.editor.EditorModel.vh2.com.wiris.editor.EditorModel (editor?lang=[object Object]&stats-editor=CKEditor5&stats-mode=xml&stats-version=7.14.0.1421:1)
at Function.com.wiris.editor.EditorModel.getNewInstanceFromJSON (editor?lang=[object Object]&stats-editor=CKEditor5&stats-mode=xml&stats-version=7.14.0.1421:1)
at Function.com.wiris.editor.EditorModel.getNewInstanceWithParams (editor?lang=[object Object]&stats-editor=CKEditor5&stats-mode=xml&stats-version=7.14.0.1421:1)
at new com.wiris.js.JsEditor.vh2.com.wiris.js.JsEditor (editor?lang=[object Object]&stats-editor=CKEditor5&stats-mode=xml&stats-version=7.14.0.1421:1)
at Function.com.wiris.js.JsEditor.newInstance (editor?lang=[object Object]&stats-editor=CKEditor5&stats-mode=xml&stats-version=7.14.0.1421:1)
at Kb.insertEditor (ckeditor.js:5)
The online, reproducible version is available here: https://7khatcode.liara.run/ask
The editor should work fine after changing to RTL language
If you'd like to see this fixed sooner, add a 馃憤 reaction to this post.
Related to this issue https://github.com/ckeditor/ckeditor5/issues/1997
Hi, thanks for the report and especially for the live demo. Unfortunately, I can confirm this issue. It seems to occur not only with RTL languages, but generally if you set language other than 'en'. I reported it in Wiris issue tracker, so you can follow it here: https://github.com/wiris/html-integrations/issues/65
Most helpful comment
Hi, thanks for the report and especially for the live demo. Unfortunately, I can confirm this issue. It seems to occur not only with RTL languages, but generally if you set language other than 'en'. I reported it in Wiris issue tracker, so you can follow it here: https://github.com/wiris/html-integrations/issues/65