KillerCodeMonkey / ngx-quill

Angular (>=2) components for the Quill Rich Text Editor
MIT License
1.78k stars 259 forks source link

formula format content lost format info #1925

Closed BBboy01 closed 2 months ago

BBboy01 commented 2 months ago

The formula content after this.quillEditor.getSemanticHTML() lost class and data-value attrs, after save the content and set that content as new content, formula can't display correctly.

CleanShot 2024-08-27 at 16 21 17@2x

<div><span>\tan\theta = \frac{\triangle y}{\triangle x}=\frac{(y+\triangle y)-y}{\triangle x}</span> -------------------- (2)</div><pre data-language="javascript">
const a = 1;
</pre><div></div>
KillerCodeMonkey commented 2 months ago

just open an issue on quilljs and or the formular module for it, please.

I want to stick to the best practices for quilljs usages and so i will stick to use getSemanticHtml.

BBboy01 commented 2 months ago

ok, there are already some issues about it https://github.com/slab/quill/issues/4289