Search code examples
javascriptjqueryquill

How to get data from quils to send to server?


I am using quill as a text editor. Quill Editor

I need to get the data from the editor to send to server in a ajax call.

I am using getContent() function but it is returning a delta object?

How do I get the data in the parsed form?


Solution

  • Just in case someone face the same problem. The data in html can be retrive using

    html = editor.root.innerHTML;
    

    A link to working code and other method here