wiris / html-integrations

The official JavaScript library for MathType, the leading formula editor and equation writer for the web by Wiris
https://wiris.com/solutions/integrations/html-editors/
MIT License
76 stars 53 forks source link

[CKEditor5] superscript gets casted to subscript #1001

Closed ErikDohmen closed 2 weeks ago

ErikDohmen commented 1 month ago

Description

We add a superscript formula in the editor through the plugin and then it gets shown correctly, but once we reload the code (or do a setData) it gets converted to a subscript formula

Environment

wiris/mathtype-ckeditor5: 8.10.0

What is the relevant software and their versions?

Steps to reproduce

  1. Create a formula with a left-superscript formula
  2. insert the formula into the editor
  3. as per your own website https://demo.wiris.com/integrations/ckeditor/ copy the generated html
  4. insert the data back into the editor through the console in my case editor.setData('

    b a = abc');

  5. see that in the editor you get an a with a left subscript instead of a left superscript

Expected result

the same as generated at first a left superscript

Actual result

a left subscript

Other details

Both in our environment as well as on the demo on your site

usantos-at-wiris commented 2 weeks ago

Hi @ErikDohmen, thanks for reaching us!

We are currently working on this, well be ready for the next release!