New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

draft-js-delete-img-btn-plugin

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

draft-js-delete-img-btn-plugin

Delete Plugin for DraftJS

1.0.0
latest
Source
npm
Version published
Weekly downloads
3
200%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

editor

FAQs

Package last updated on 26 Feb 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts