JSPM

draft-js-modal-plugin

1.2.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 52
  • Score
    100M100P100Q64332F
  • License MIT

LastDraft modals for DraftJS

Package Exports

  • draft-js-modal-plugin

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (draft-js-modal-plugin) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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.