7๐
โ
If want to plain HTML in order to submit it to your server (for the entire edited document), you can just grab quill.root.innerHTML
(which is the HTML inside the quill edit box) when your form is submitted (when the Submit button is pressed).
<form action="/SomeAction"
method="POST"
onsubmit="this['contents'].value = quill.root.innerHTML;"
name="contentForm">
<input type="hidden" name="id" value="239" />
<input type="hidden" name="contents" value="" />
<input type="submit" value="Submit">
</form>
๐คGlenPeterson
Source:stackexchange.com