Quill: Save and restore state from HTML

Created on 29 Oct 2016  路  3Comments  路  Source: quilljs/quill

Hi, I cannot find how it's supposed to do this. I don't want to persist to Delta at the moment. Thanks

Most helpful comment

As stated in the linked comment you can get the HTML with quill.root.innerHTML or document.querySelector(".ql-editor").innerHTML and to set it you can either have it already in the container before passing the container into Quill (like in the Quickstart) or use quill.clipboard.dangerouslyPasteHTML.

All 3 comments

As stated in the linked comment you can get the HTML with quill.root.innerHTML or document.querySelector(".ql-editor").innerHTML and to set it you can either have it already in the container before passing the container into Quill (like in the Quickstart) or use quill.clipboard.dangerouslyPasteHTML.

I want to store thequill.root.innerHTML in my database how can I do it??

Was this page helpful?
0 / 5 - 0 ratings

Related issues

visore picture visore  路  3Comments

stas-kh picture stas-kh  路  3Comments

kheraud picture kheraud  路  3Comments

lastmjs picture lastmjs  路  3Comments

eamodio picture eamodio  路  3Comments