UNPKG

hztianxu-draft-js-plugins

Version:

A Plugin Architecture on top of Draft.JS

18 lines (11 loc) 345 B
# DraftJS Cleanup Plugin *This is a plugin for the `draft-js-plugins-editor`.* Usage: ```js 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`;