draft-js-dnd-plugin

Dnd Plugin for DraftJS

Usage no npm install needed!

<script type="module">
  import draftJsDndPlugin from 'https://cdn.skypack.dev/draft-js-dnd-plugin';
</script>

README

DraftJS Drag&Drop Plugin

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

This plugin adds drag and drop functionality to your editor!

  • Drop files
  • Move blocks that are wrapped by DraggableDecorator
  • Drop a text like 'type:image' to create a new block of type image

Usage:

import createDndPlugin from 'draft-js-dnd-plugin';

const dndPlugin = createDndPlugin();