c-w / mathquill4quill

Power-up Quill's formula editing via the MathQuill editor
https://justamouse.com/mathquill4quill
Apache License 2.0
139 stars 33 forks source link

Formula module not enabled #88

Closed ghost closed 2 years ago

ghost commented 2 years ago

Hello,

I want the editor with these nice addons you game us, but I am not able to get this running

Everytime I try to run your editor I get the following error: Formula module not enabled

This is related to this piece of your code:

if (!quill.options.modules.formula) { console.log(quill.options.modules.formula, 'Formula module not enabled') // eslint-disable-line no-console return false }

can you help me please?

c-w commented 2 years ago

Which versions of packages (quill/mathquill4quill) are you using?

ghost commented 2 years ago
I am using Library/Package Version
react-quill 1.3.5
mathquill4quill 2.3.0
katex 0.13.18
jquery 3.4.1
mathquill 0.10.1
react 16.14.0
react-dom 16.14.0
jquery 3.4.1
ghost commented 2 years ago

I already managed to resolve my problem, thank you

c-w commented 2 years ago

Could you share the solution here for others who may have the same issue in the future?

ghost commented 2 years ago

Ok, I am not sure if that was the case, however the order o the import statements is very important... It just started working here after I've used those eslin rules here:


/* eslint-disable  simple-import-sort/sort */```

I mean the order on which the import statements are presented in the Editor.js file from the react example.

I would like also to make a suggestion

What if there was a way to erase a formula from history? It could be utile
c-w commented 2 years ago

That sounds like a useful feature. Feel free to open a PR for it and I’m happy to review.