react-quill
react-quill copied to clipboard
<p> </p> added to onChange output value
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