draft-js-cleanup-empty-plugin

2.0.0-beta1 • Public • Published

DraftJS Cleanup Plugin

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

Usage:

import createCleanupEmptyPlugin from `draft-js-cleanup-empty-plugin`;

const cleanupPlugin = createCleanupEmptyPlugin({
  types: []
});

Dependencies:

This plugin requires that the draft-js-entity-props-plugin is also applied to the Editor;

Package Sidebar

Install

npm i draft-js-cleanup-empty-plugin

Weekly Downloads

10

Version

2.0.0-beta1

License

MIT

Last publish

Collaborators

  • nikgraf
  • bkniffler
  • sibelius