0.0.4 • Published 4 years ago

draft-js-image-render-plugin v0.0.4

Weekly downloads
25
License
MIT
Repository
github
Last release
4 years ago

draft-js-image-render-plugin

Demo page

Installation:

npm i draft-js-image-render-plugin

Usage:

import Editor from 'draft-js-plugins-editor';
import createImageRenderPlugin from 'draft-js-image-render-plugin';
``
export const imageRenderPlugin = createImageRenderPlugin();

const plugins = [imageRenderPlugin];

<Editor
    ref={editorRef}
    plugins={plugins}
    editorState={editorState}
    onChange={handleChangeEditor}
/>