Skip to content

Commit 71d67ec

Browse files
authored
Improving doc.
1 parent f453f5c commit 71d67ec

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ npm install draft-js-select-image-plugin
1010

1111
## Usage
1212
This plugin exposes a button that integrates with the side toolbar.
13-
Rendering the image is out of scope, but in the following example you can see how to integrate `draft-js-image-plugin`.
1413

1514
```js
1615
import createSelectImagePlugin from 'draft-js-select-image-plugin';
1716
const selectImagePlugin = createSelectImagePlugin({});
17+
const { SelectImageButton } = selectImagePlugin;
1818
```
1919

2020
## Configuration
@@ -23,6 +23,8 @@ const selectImagePlugin = createSelectImagePlugin({});
2323
| imageType | IMAGE | Type of entity created when inserting the atomic block. By default it's the same value as `draft-js-image-plugin` |
2424

2525
## Integration
26+
Rendering the image is out of scope, but in the following example you can see how to integrate `draft-js-image-plugin`.
27+
2628
```js
2729
import React from 'react';
2830
import ReactDOM from 'react-dom';

0 commit comments

Comments
 (0)