Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

@wiris/mathtype-ckeditor5 is not working after setting language #7747

Closed
uchar opened this issue Jul 30, 2020 · 4 comments
Closed

@wiris/mathtype-ckeditor5 is not working after setting language #7747

uchar opened this issue Jul 30, 2020 · 4 comments
Labels
package:mathtype resolution:expired This issue was closed due to lack of feedback. status:stale type:bug This issue reports a buggy (incorrect) behavior.

Comments

@uchar
Copy link

uchar commented Jul 30, 2020

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

@uchar uchar added the type:bug This issue reports a buggy (incorrect) behavior. label Jul 30, 2020
@uchar uchar changed the title @wiris/mathtype-ckeditor5 not work after setting language @wiris/mathtype-ckeditor5 is not working after setting language Jul 30, 2020
@uchar
Copy link
Author

uchar commented Jul 31, 2020

Related to this issue #1997

@FilipTokarski
Copy link
Member

FilipTokarski commented Jul 31, 2020

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: wiris/html-integrations#65

@Mgsy Mgsy added this to the nice-to-have milestone Jul 31, 2020
@pomek pomek removed this from the nice-to-have milestone Feb 21, 2022
@CKEditorBot
Copy link
Collaborator

There has been no activity on this issue for the past year. We've marked it as stale and will close it in 30 days. We understand it may still be relevant, so if you're interested in the solution, leave a comment or reaction under this issue.

@CKEditorBot
Copy link
Collaborator

We've closed your issue due to inactivity over the last year. We understand that the issue may still be relevant. If so, feel free to open a new one (and link this issue to it).

@CKEditorBot CKEditorBot added the resolution:expired This issue was closed due to lack of feedback. label Nov 12, 2023
@CKEditorBot CKEditorBot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package:mathtype resolution:expired This issue was closed due to lack of feedback. status:stale type:bug This issue reports a buggy (incorrect) behavior.
Projects
None yet
Development

No branches or pull requests

5 participants