sstur / react-rte

Pure React rich text WYSIWYG editor based on draft-js.
https://react-rte.org
ISC License
2.86k stars 431 forks source link

unwanted spaces coming at top when trying to set html string to value #414

Open Newgin-sam opened 2 years ago

Newgin-sam commented 2 years ago

When i'm trying to set html string in state like below:

state = { value: RichTextEditor.createValueFromString("<p>hello</p><br><p>People</p><br>", 'html') };

initial output on the editor is like image