Quill editor, how to get the straightness of div, and then put it to input?

I want to use the quill editor
, but he wrote
on div, but I just have to take out the content to get to the database
, but I have always failed
var html = $("- sharpeditor"). Val ();
$("- sharpcontent") .html (html);
I can"t do this
how can I get the value in div completely? And then meet up with input?
or is there another way to do this server?

pretending to be
clipboard.png

the method I found on the web is document.querySelector (".ql-editor"). InnerHTML;

).

print it out and get it.
but how do I make it POST??
I added a hidden inpit
$("- sharpcontent") to the list. Val (html);
but the POST is followed by an empty

Mar.11,2021

do you want to get the content in the editor? Need to call the api, provided by quill but through .val (),. I looked through the manual. If you want to get the complete html, you can use:

https://quilljs.com/docs/api/.

if you want to take the text content, you can use

https://quilljs.com/docs/api/.

Menu