[Feature Request] Maths Support #904
Replies: 24 comments
-
Does quill define format for it? |
Beta Was this translation helpful? Give feedback.
-
format for the maths input? |
Beta Was this translation helpful? Give feedback.
-
Need the corresponding attribute for it. Please check quill documentation. |
Beta Was this translation helpful? Give feedback.
-
i presume it wouldn't be within the main quill package but rather in something likes mathquill |
Beta Was this translation helpful? Give feedback.
-
We need to make sure web version of react quill can be compatible |
Beta Was this translation helpful? Give feedback.
-
I'm pretty sure it is, since there are quite a few "react-mathquill" type packages which seem to work together from a quick google search |
Beta Was this translation helpful? Give feedback.
-
So what is it like for underlying json data? |
Beta Was this translation helpful? Give feedback.
-
I think it would just have a tag like normal, and then the math would be stored as LATEX If you can guide me through how to add additional components, I could try to add it myself? |
Beta Was this translation helpful? Give feedback.
-
Please go through https://youtube.com/playlist?list=PLbhaS_83B97vONkOAWGJrSXWX58et9zZ2 if you don't understand what I mean by attribute. https://github.com/singerdmx/flutter-quill/blob/master/example/assets/sample_data.json |
Beta Was this translation helpful? Give feedback.
-
It's all maths stored as LATEX (or KATEX) inside the JSON |
Beta Was this translation helpful? Give feedback.
-
oh, i watched the videos, and it seems you went through the same website I sent :P |
Beta Was this translation helpful? Give feedback.
-
Try https://codesandbox.io/s/3zf03 and you can intercept web traffic to figure out the json |
Beta Was this translation helpful? Give feedback.
-
i got it typed in, how do I get the JSON? sorry, i can't find it in dev tools |
Beta Was this translation helpful? Give feedback.
-
that just seems to be giving me html? is there a way to export the delta document? |
Beta Was this translation helpful? Give feedback.
-
It is possible if you know react |
Beta Was this translation helpful? Give feedback.
-
sorry you might have to do it for me :/ |
Beta Was this translation helpful? Give feedback.
-
I made a commit to my fork here and it seems easy enough to add a new toolbar entry and create a new widget to show the maths keyboard, buttt for some reason flutter quill has a very odd focus system which makes it so you can't type in the textbox like normal Is there somewhere I can edit to fix up the focus, because it's currently quite broken |
Beta Was this translation helpful? Give feedback.
-
If you cannot figure out the json data, I am unsure what to talk about |
Beta Was this translation helpful? Give feedback.
-
This will be my final comment until json data is figure out. Please don't expect me to reply more |
Beta Was this translation helpful? Give feedback.
-
I'm not sure how to use react so I won't be able to figure out how to extract it from the link you sent It seems like you've been able to type in expressions yourself so would you please be able to extract the JSON data for me? |
Beta Was this translation helpful? Give feedback.
-
ended up learning the basics of react to try and get the json data, here it is: {
"ops": [
{
"insert": {
"formula": "x=\\frac{-b\\pm\\sqrt{b^2-4ac}}{2a}"
}
}
]
} would we be able to go ahead with implementing the formula attribute? |
Beta Was this translation helpful? Give feedback.
-
Sure. Please add this in https://github.com/singerdmx/flutter-quill/blob/master/example/assets/sample_data.json |
Beta Was this translation helpful? Give feedback.
-
#899 |
Beta Was this translation helpful? Give feedback.
-
I was wondering if it was possible to add maths support with LATEX? This plugin could be quite good to implement something like that.
I'd be happy to do it myself, but I'm not too sure how to add a new element to the page UI. I skimmed through the documentation but it wasn't quite clear, would I start with the
text_block.dart
file?Thank you very much!! :)
Beta Was this translation helpful? Give feedback.
All reactions