How to render QuillJS rich-text output to HTML How to render QuillJS rich-text output to HTML javascript javascript

How to render QuillJS rich-text output to HTML


editor.root.innerHTML

You will need to style it.

From there you can export to PDF with something like jsPDF or similar or bounce it to the server.

Example:

Getting Quill content


Quill delta itself designed to represent contents, not visualization.as documentation say, delta doesn't assign any meaning to attribute, bold can be <strong> or <b> or <custom tag> in html, it mean you can design your delta to represent your own content.

To render delta in your own format, you can use quill-render. so you can have 1 or more different format for render to your html and pdf.


Quill doesn't output to HTML natively. But there are plugins that can render data from Quill, such as quilljs-renderer