hztianxu-draft-js-plugins
Version:
A Plugin Architecture on top of Draft.JS
16 lines (9 loc) • 339 B
Markdown
# DraftJS Block Drag & Drop Plugin
*This is a plugin for the `draft-js-plugins-editor`.*
This plugin adds drag and drop functionality to your editor!
- Move blocks that are wrapped by `DraggableDecorator`
Usage:
```js
import createBlockDndPlugin from 'draft-js-drag-n-drop-plugin';
const blockDndPlugin = createBlockDndPlugin();
```