Skip to content

Commit adb7116

Browse files
authored
Merge pull request #26 from gloooom/master
fix README.md
2 parents 870870e + da43014 commit adb7116

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)