Skip to content

nil1511/draft-js-delete-img-btn-plugin

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published