1.0.0 • Published 7 years ago

draft-js-delete-img-btn-plugin v1.0.0

Weekly downloads
5
License
MIT
Repository
github
Last release
7 years ago

DraftJS Delete Image Button Plugin

This is a plugin for the draft-js-plugins-editor.

Usage:

import createDeleteImgPlugin from 'draft-js-delete-img-btn-plugin';

const deleteImgPlugin = createDeleteImgPlugin();
const { DeleteImgBtn } = deleteImgPlugin;

// Add DeleteImgBtn after editore as
<div>
  <Editor
    editorState={this.state.editorState}
    onChange={this.onChange}
    plugins={plugins}
  />
  <DeleteImgBtn />
</div>

Dependencies:

This plugin requires that the draft-js-focus-plugin;

Forked from draft-js-alignment-plugin