Skip to content

Commit 420032f

Browse files
committed
Upgrading dependencies
1 parent adb7116 commit 420032f

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
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;
18+
const { contentBlocks, entityMap } = blocksFromHtml.contentBlock;
1919
const contentState = ContentState.createFromBlockArray(contentBlocks, entityMap);
2020
const editorState = EditorState.createWithContent(contentState);
2121
```

dist/html-to-draftjs.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "html-to-draftjs",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"main": "dist/html-to-draftjs.js",
55
"repository": {
66
"type": "git",
@@ -10,15 +10,15 @@
1010
"babel-preset-es2015": "^6.24.1",
1111
"babel-preset-react": "^6.24.1",
1212
"babel-preset-stage-0": "^6.24.1",
13-
"chai": "^4.1.0",
14-
"draft-js": "^0.10.1",
15-
"draftjs-to-html": "^0.7.3",
16-
"react": "^15.6.1",
17-
"react-dom": "^15.6.1",
18-
"react-draft-wysiwyg": "^1.10.7",
19-
"react-scripts": "1.0.10",
20-
"rimraf": "^2.6.1",
21-
"webpack": "^3.3.0"
13+
"chai": "^4.1.2",
14+
"draft-js": "^0.10.3",
15+
"draftjs-to-html": "^0.7.5",
16+
"react": "^16.0.0",
17+
"react-dom": "^16.0.0",
18+
"react-draft-wysiwyg": "^1.10.12",
19+
"react-scripts": "1.0.14",
20+
"rimraf": "^2.6.2",
21+
"webpack": "^3.6.0"
2222
},
2323
"peerDependencies": {
2424
"draft-js": "^0.9.x || ^0.10.x"

0 commit comments

Comments
 (0)