How to use draft-js-delete-img-btn-plugin - 1 common examples

To help you get started, we’ve selected a few draft-js-delete-img-btn-plugin examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github busyorg / busy / src / post / Write / PostEditor.js View on Github external
import createDeleteImgPlugin from 'draft-js-delete-img-btn-plugin';

import './Write.less';
import './PostEditor.less';
import Icon from '../../widgets/Icon';
import SideControls from './SideControls';

const debug = newDebug('busy:PostEditor');
const emojiPlugin = createEmojiPlugin();
const hashtagPlugin = createHashtagPlugin();
const linkifyPlugin = createLinkifyPlugin();
const { EmojiSuggestions } = emojiPlugin;
const focusPlugin = createFocusPlugin();
const dndPlugin = createDndPlugin();
const deleteImgPlugin = createDeleteImgPlugin();
const { DeleteImgBtn } = deleteImgPlugin;

const decorator = composeDecorators(focusPlugin.decorator,
  dndPlugin.decorator, deleteImgPlugin.decorator);
const imagePlugin = createImagePlugin({ decorator });

const plugins = [
  dndPlugin, focusPlugin, imagePlugin,

// Custom overrides for "code" style.


Delete Plugin for DraftJS

Latest version published 7 years ago

Package Health Score

69 / 100
Full package analysis

Popular draft-js-delete-img-btn-plugin functions