react-quill icon indicating copy to clipboard operation
react-quill copied to clipboard

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

Open th-e0 opened this issue 2 years ago • 0 comments

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

th-e0 avatar Aug 25 '22 14:08 th-e0