I am having real trouble understanding how to work with quill...
Saving the data is not a problem as that pretty straight forward :)
I am a little stuck on two points
can anyone offer any advice how to load the delta
{"ops":[{"insert":"this is a test bit of text\n"}]}
back into the quill editor and how to parse the output to create a page?
Thanks in advance for any replies!
Use setContents to insert a delta:
quill.setContents({
"ops":[
{"insert":"this is a test bit of text\n"}
]
});
http://codepen.io/anon/pen/VKWZLd
You can access the raw HTML with:
var html = document.querySelector(".ql-editor").innerHTML
If you are working with raw HTML, you need to sanitize it before you use it.