HubSpot / draft-convert

Extensibly serialize & deserialize Draft.js ContentState with HTML.
Apache License 2.0
483 stars 94 forks source link

Cannot overwrite text data when using htmlToBlock #136

Open brik-dm opened 6 years ago

brik-dm commented 6 years ago

When I add the following to htmlToBlock inside convertFromHTML the block text is not overwritten return { type: 'atomic', text: '', };

Am I doing something wrong?