Ckeditor5: @wiris/mathtype-ckeditor5 is not working after setting language

Created on 30 Jul 2020  路  2Comments  路  Source: ckeditor/ckeditor5

馃摑 Provide detailed reproduction steps (if any)

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.

image

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

鉁旓笍 Expected result

The editor should work fine after changing to RTL language

馃搩 Other details

  • Browser: Chrome
  • OS: Windows 10
  • CKEditor version: 5
  • Installed CKEditor plugins: @wiris/mathtype-ckeditor5

If you'd like to see this fixed sooner, add a 馃憤 reaction to this post.

mathtype bug

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

All 2 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Reinmar picture Reinmar  路  3Comments

pjasiun picture pjasiun  路  3Comments

devaptas picture devaptas  路  3Comments

oleq picture oleq  路  3Comments

oleq picture oleq  路  3Comments