Skip to content

Commit 0885f81

Browse files
committed
Major release: 1.0.0
1 parent 97651a6 commit 0885f81

File tree

4 files changed

+2366
-2357
lines changed

4 files changed

+2366
-2357
lines changed

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
access=public

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ This library contains two sets of functions:
1414

1515
#### Utils
1616

17+
```js
18+
import { getCurrentBlock, isCurrentBlockType, isBlockWithEntityType } from '@jimmycode/draft-js-toolbox';
19+
```
20+
1721
| Function | Params | Description |
1822
|-----------------------|---------------------------------|------------------------------------------------------------------------------|
1923
| getCurrentBlock | editorState | Returns the current block selected. |
@@ -22,6 +26,10 @@ This library contains two sets of functions:
2226

2327
#### Modifiers
2428

29+
```js
30+
import { addBlock, addAtomicBlock, removeBlock } from '@jimmycode/draft-js-toolbox';
31+
```
32+
2533
| Function | Params | Description |
2634
|----------------|-------------------------------|-----------------------------------------------------------------|
2735
| addBlock | editorState, entityType, data | Changes the current block's type and replace its data. |

0 commit comments

Comments
 (0)