zenoamaro / react-quill

A Quill component for React.
https://zenoamaro.github.io/react-quill
MIT License
6.7k stars 913 forks source link

<p> </p> added to onChange output value #832

Open th-e0 opened 2 years ago

th-e0 commented 2 years ago

Hi.

<ReactQuill
    onChange={handleDescriptionChange}
    value={stateTextEditor.value}
    formats={formats}
/>

The outputted value is always encapsulated in <p> </p>, even if it contains nothing. How to do away with this?

Very easy to fix by adding: value.substring(3, value.length - 4); on outputted data but this is perhaps still not desired behaviour.

Thanks

FemtDeveloper commented 1 year ago

Hi. is there another solution by default for that? I want to upload to database without this

tag

dhboys commented 1 year ago

Hi. is there another solution by default for that? I want to upload to database without this

tag

same issue. need to help 🤷‍♀️