Skip to content

Commit 811c595

Browse files
committed
New release
1 parent a0ad8ec commit 811c595

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ npm install html-to-draftjs --save
1010
```
1111

1212
## Usage
13+
1314
```
1415
import { EditorState, ContentState } from 'draft-js';
1516
import htmlToDraft from 'html-to-draftjs';
@@ -19,3 +20,5 @@ const { contentBlocks, entityMap } = blocksFromHtml;
1920
const contentState = ContentState.createFromBlockArray(contentBlocks, entityMap);
2021
const editorState = EditorState.createWithContent(contentState);
2122
```
23+
24+
**Take Care:** Plz not use `[email protected]` it has build issues.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "html-to-draftjs",
3-
"version": "1.2.0",
3+
"version": "1.3.0",
44
"main": "dist/html-to-draftjs.js",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)