Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
D

draft-js-plugins

> 前端框架
Open source

React Plugin Architecture for Draft.js including Slack-Like Emojis, FB-Like Mentions and Stickers

4.1K stars0 likes1 views
WebsiteGitHub

About

React Plugin Architecture for Draft.js including Slack-Like Emojis, FB-Like Mentions and Stickers

DraftJS Plugins

Deprecated: This project is no longer maintained. The underlying Draft.js editor was archived by Facebook in 2023 and is no longer receiving updates. This repository is archived and no further bug fixes or features will be released.

High quality plugins with great UX on top of DraftJS.

Available Plugins (incl. Docs)

  • Anchor
  • Alignment
  • Counter
  • Drag and Drop
  • Divider
  • Emoji
  • Focus
  • Hashtag
  • Image
  • Inline Toolbar
  • Linkify
  • Mention
  • Resizeable
  • Side Toolbar
  • Static Toolbar
  • Sticker
  • Text Alignment
  • Undo
  • Video
  • or build your own … :)

Built by the community

  • Autolist by Max Wheeler/Icelab
  • Block Breakout by Max Wheeler/Icelab
  • Markdown Shortcuts by Atsushi Nagase
  • Single Line by Max Wheeler/Icelab
  • RichButtons by jasonphillips
  • Katex by letranloc
  • Mathjax by efloti
  • Buttons by StevenIseki
  • Color Picker by StevenIseki
  • Embed by StevenIseki
  • EmojiPicker by StevenIseki
  • GifPicker by StevenIseki
  • Link by StevenIseki
  • Modal by StevenIseki
  • Sidebar by StevenIseki
  • Toolbar by StevenIseki
  • Divider by simsim0709
  • Code Editor by Max Stroiber/Spectrum

Live Example & Documentation

Checkout the website!

Usage

First, install the editor with npm:

$ npm install @draft-js-plugins/editor --save

Then import the editor somewhere in your code and you're ready to go!

javascript
import Editor from '@draft-js-plugins/editor';

Documentation

@draft-js-plugins/editor

Editor

An editor component accepting plugins. see source

Props Description Required
editorState see here *
onChange see here *
plugins an array of plugins
decorators an array of custom decorators
defaultKeyBindings bool
defaultBlockRenderMap bool
all other props accepted by the DraftJS Editor except decorator see here

Usage:

…

How to write a Plugin

Feel free to copy any of the existing plugins as a starting point.In this repository you can also find a Guide on how to create a plugin, including a description of the supported features. In addition you can contact @nikgraf directly in case you need help or simply open a Github Issue!

Discussion and Support

Join the channel #draft-js-plugins after signing into the DraftJS Slack organization or check out our collection of frequently asked questions here: FAQ.

Development

Check out our Contribution Guide.

Learn about why Draft.js and how to use DraftJS Plugins

In this talk Nik Graf explained the ContentState structure of a Draft.js Editor as well as explained how to use plugins.

License

MIT

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

TypeScriptdraft-jsdraft-js-pluginshashtagsmentions

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架