Skip to content

Commit 19c8197

Browse files
committed
Major release 1.0.0
1 parent 2785c13 commit 19c8197

File tree

7 files changed

+2391
-2399
lines changed

7 files changed

+2391
-2399
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 & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ npm install @jimmycode/draft-js-select-image-plugin
1212
This 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';
1616
const selectImagePlugin = createSelectImagePlugin({});
1717
const { SelectImageButton } = selectImagePlugin;
1818
```
@@ -25,6 +25,10 @@ const { SelectImageButton } = selectImagePlugin;
2525
## Integration
2626
Rendering 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
2933
import React from 'react';
3034
import ReactDOM from 'react-dom';
@@ -33,10 +37,11 @@ import Editor from 'draft-js-plugins-editor';
3337
import { EditorState } from 'draft-js';
3438
import createSideToolbarPlugin from 'draft-js-side-toolbar-plugin';
3539
import BlockTypeSelect from 'draft-js-side-toolbar-plugin/lib/components/BlockTypeSelect';
36-
3740
import 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+
3943
import 'draft-js-side-toolbar-plugin/lib/plugin.css';
44+
import 'draft-js-image-plugin/lib/plugin.css';
4045

4146
const imagePlugin = createImagePlugin();
4247
const selectImagePlugin = createSelectImagePlugin();

0 commit comments

Comments
 (0)