ludejun / quill-react-commercial

A Quill component for React and more maturely. Support markdown, images upload, table, code...
https://ludejun.github.io/quill-react-commercial/
18 stars 7 forks source link

How to get html content? #4

Open appasaheb4 opened 4 months ago

appasaheb4 commented 4 months ago

Now showing Delta content onChange We need html format output

ludejun commented 4 months ago

There are two methods to get html content and the outputs are different:

  1. use "quill-delta-to-html". It can convert Delta to html.
  2. use quill.getSemanticHTML(). getSemanticHTML

First, you can use getQuill to get the quill's instance like in example.

const getQuill = (quillIns) => { quill.current = quillIns; };