We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 420032f commit b3f1b2dCopy full SHA for b3f1b2d
README.md
@@ -15,7 +15,7 @@ import { EditorState, ContentState } from 'draft-js';
15
import htmlToDraft from 'html-to-draftjs';
16
17
const blocksFromHtml = htmlToDraft(this.props.content);
18
-const { contentBlocks, entityMap } = blocksFromHtml.contentBlock;
+const { contentBlocks, entityMap } = blocksFromHtml;
19
const contentState = ContentState.createFromBlockArray(contentBlocks, entityMap);
20
const editorState = EditorState.createWithContent(contentState);
21
```
0 commit comments