https://github.com/springload/draftail
📝🍸 A configurable rich text editor built with Draft.js
https://github.com/springload/draftail
draft-js editor react wagtail wysiwyg
Last synced: 5 months ago
JSON representation
📝🍸 A configurable rich text editor built with Draft.js
- Host: GitHub
- URL: https://github.com/springload/draftail
- Owner: springload
- License: mit
- Created: 2016-11-11T13:23:26.000Z (almost 9 years ago)
- Default Branch: main
- Last Pushed: 2025-03-07T13:47:30.000Z (7 months ago)
- Last Synced: 2025-04-06T23:18:24.086Z (6 months ago)
- Topics: draft-js, editor, react, wagtail, wysiwyg
- Language: TypeScript
- Homepage: https://www.draftail.org/
- Size: 10.6 MB
- Stars: 622
- Watchers: 21
- Forks: 64
- Open Issues: 30
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: docs/CONTRIBUTING.md
- License: LICENSE
- Code of conduct: docs/CODE_OF_CONDUCT.md
- Security: docs/SECURITY.md
- Support: docs/SUPPORT.md
Awesome Lists containing this project
README
# [Draftail](https://www.draftail.org/) [
](https://www.draftail.org/)
[](https://www.npmjs.com/package/draftail) [](https://github.com/springload/draftail/actions) [](https://coveralls.io/github/springload/draftail) [](https://app.netlify.com/sites/draftail-demos/deploys)
> :memo::cocktail: A configurable rich text editor built with [Draft.js](https://draftjs.org/). Check out our [demos](https://www.draftail.org/examples)!
[](https://www.draftail.org/)
> [!NOTE]
> While Draftail itself is maintained, the underlying Draft.js library has been archived and no longer receives updates. For more information, see [Draft.js no longer maintained #456](https://github.com/springload/draftail/issues/456).## Features
Draftail aims for a mouse-free, keyboard-centric experience. Here are important features worth highlighting:
- Support for [keyboard shortcuts](https://www.draftail.org/docs/keyboard-shortcuts). Lots of them!
- Paste from Word. Or any other editor. It just works.
- Autolists – start a line with `-` , `*` , `1.` to create a list item.
- Shortcuts for heading levels `##`, code blocks ` ``` `, text formats `**`, and more.
- Undo / redo – until the end of times.
- Common text types: headings, paragraphs, quotes, lists.
- Common text styles: Bold, italic, and many more.
- API to build custom controls for links, images, and more.
- Compatibility with the [`draft-js-plugins`](https://www.draft-js-plugins.com) ecosystem to build more advanced extensions.> This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html), and measures performance and [code coverage](https://coveralls.io/github/springload/draftail). We also try to follow accessibility best practices (tested with [aXe](https://www.axe-core.org/)) – please [get in touch](https://github.com/springload/draftail/issues/149#issuecomment-389476151) if you can help us do better in this area.
## Documentation
- [Getting started](https://www.draftail.org/docs/getting-started)
- [API reference](https://www.draftail.org/docs/api)
- [User guide](https://www.draftail.org/docs/user-guide)
- [Getting started with extensions](https://www.draftail.org/docs/getting-started-with-extensions)## Contributing
See anything you like in here? Anything missing? We welcome all support, whether on bug reports, feature requests, code, design, reviews, tests, documentation, and more. Please have a look at our [contribution guidelines](docs/CONTRIBUTING.md).
If you just want to set up the project on your own computer, the contribution guidelines also contain all of the setup commands.
## Credits
Draftail is made possible by the work of [Springload](https://github.com/springload/). View the full list of [contributors](https://github.com/springload/draftail/graphs/contributors). [MIT](LICENSE) licensed. The [draftail.org](https://github.com/thibaudcolas/draftail.org) documentation and demos are powered by [Netlify](https://www.netlify.com/).