@@ -12,7 +12,7 @@ npm install @jimmycode/draft-js-select-image-plugin
1212This plugin exposes a button that integrates with the side toolbar.
1313
1414``` js
15- import createSelectImagePlugin from ' draft-js-select-image-plugin' ;
15+ import createSelectImagePlugin from ' @jimmycode/ draft-js-select-image-plugin' ;
1616const selectImagePlugin = createSelectImagePlugin ({});
1717const { SelectImageButton } = selectImagePlugin;
1818```
@@ -25,6 +25,10 @@ const { SelectImageButton } = selectImagePlugin;
2525## Integration
2626Rendering the image is out of scope, but in the following example you can see how to integrate ` draft-js-image-plugin ` .
2727
28+ ```
29+ npm install draft-js-image-plugin
30+ ```
31+
2832``` js
2933import React from ' react' ;
3034import ReactDOM from ' react-dom' ;
@@ -33,10 +37,11 @@ import Editor from 'draft-js-plugins-editor';
3337import { EditorState } from ' draft-js' ;
3438import createSideToolbarPlugin from ' draft-js-side-toolbar-plugin' ;
3539import BlockTypeSelect from ' draft-js-side-toolbar-plugin/lib/components/BlockTypeSelect' ;
36-
3740import createImagePlugin from ' draft-js-image-plugin' ;
38- import createSelectImagePlugin from ' draft-js-select-image-plugin' ;
41+ import createSelectImagePlugin from ' @jimmycode/draft-js-select-image-plugin' ;
42+
3943import ' draft-js-side-toolbar-plugin/lib/plugin.css' ;
44+ import ' draft-js-image-plugin/lib/plugin.css' ;
4045
4146const imagePlugin = createImagePlugin ();
4247const selectImagePlugin = createSelectImagePlugin ();
0 commit comments