Built on top of Slate framework,
slate-plugins-next enables you to use a list of
customizable plugins for your Slate editor.
🚀 Included ✨20+ Editor Plugins. 🏷️Separation of Concerns. ⚛️Atomic Design. 🎌Supports the latest version of
📖Docs and Demos on Storybook.
A list of provided plugins extracted from official examples.
A plugin for each type of element. All of these
A plugin for each type of leaf. All of these
- Slate Plugins
- Forced Layout
- Markdown Preview
- Markdown Shortcuts
- Paste Html
- Search Highlight
yarn add slate-plugins-next
You will also need these peerDependencies:
yarn add slate slate-hyperscript slate-react styled-components react react-dom
You can use this repository to share your own plugins.
If your plugin is tree-shakeable, you can add it to
Otherwise, create a new package in
Useful scripts include:
Installs package dependencies
Starts storybook dev
boolean check if code conforms to linting eslint rules
Lint, build and push a release to git and npm will ask for version in interactive mode - using lerna.
Slate is a powerful editor framework that helps you deal with difficult parts when building an editor, such as events handlers, elements, formatting, commands, rendering, serializing, normalizing, etc.
While you are trying to build your own editors, it still need a lot of efforts to make something similar to Quill or ProseMirror. This repository allows you to build your editor right away with minimal slate knowledge.
For simplicity, a single package
slate-plugins-next has been published to share all the plugins.
It's not a problem as it is tree-shakeable. However, a few plugins use external dependencies.
These should be moved into their own package in the future.