draft-js-select-image-plugin
Advanced tools
Comparing version 0.5.0 to 0.5.1
{ | ||
"name": "draft-js-select-image-plugin", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"description": "Embed a local image in your draft-js editor", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
# draft-js-select-image-plugin | ||
Embed a local image in your draft-js editor | ||
*This is a plugin for the `draft-js-plugins-editor`.* | ||
*This is a plugin for `draft-js-plugins-editor`.* | ||
@@ -13,3 +13,2 @@ ## Installation | ||
This plugin exposes a button that integrates with the side toolbar. | ||
Render the image is out of the scope, but in the next example you can see how integrate `draft-js-image-plugin`. | ||
@@ -19,2 +18,3 @@ ```js | ||
const selectImagePlugin = createSelectImagePlugin({}); | ||
const { SelectImageButton } = selectImagePlugin; | ||
``` | ||
@@ -25,5 +25,7 @@ | ||
|-----------|---------|--------------------------------------------------------------------------------------------------------------| | ||
| imageType | IMAGE | Type of entity created when insert the atomic block. By default is the same value as `draft-js-image-plugin` | | ||
| imageType | IMAGE | Type of entity created when inserting the atomic block. By default it's the same value as `draft-js-image-plugin` | | ||
## Integration | ||
Rendering the image is out of scope, but in the following example you can see how to integrate `draft-js-image-plugin`. | ||
```js | ||
@@ -30,0 +32,0 @@ import React from 'react'; |
11384
93