@whisperlab/draft-js-modal-plugin
v1.2.4
Published
LastDraft modals for DraftJS
Downloads
13
Maintainers
Readme
DraftJS modal Plugin
This is a plugin for the draft-js-plugins-editor
.
This plugin allows for modals to be added to either the Toolbar or Sidebar plugin.
It includes 5 modals:
- ColorModal which uses
draft-js-color-picker-plugin
- EmbedModal which adds an embed block, requires
draft-js-embed-plugin
- EmojiModal which uses
draft-js-emoji-picker-plugin
- GifModal which uses
draft-js-gif-picker-plugin
- LinkModal which adds a link entity, requires
draft-js-link-plugin
Usage
See last-draft-js-sidebar-plugin
or last-draft-js-toolbar-plugin
for example usage, or to include the modals, just add the above plugins which use the modal plugin.