Skip to content

Commit da43014

Browse files
committed
fix README.md
1 parent 2ac950e commit da43014

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import { EditorState, ContentState } from 'draft-js';
1515
import htmlToDraft from 'html-to-draftjs';
1616
1717
const blocksFromHtml = htmlToDraft(this.props.content);
18-
const { contentBlocks, entityMap } = blocksFromHtml.contentBlocks;
18+
const { contentBlocks, entityMap } = blocksFromHtml;
1919
const contentState = ContentState.createFromBlockArray(contentBlocks, entityMap);
2020
const editorState = EditorState.createWithContent(contentState);
2121
```

0 commit comments

Comments
 (0)