verbb / editor
A Craft-native frontend rich-text editor foundation.
Fund package maintenance!
Requires
- php: ^8.2
- craftcms/cms: ^5.10.0
- ueberdosis/tiptap-php: ^2.1.1
- verbb/base: ^3.0.19
Requires (Dev)
- pestphp/pest: ^3.8
- pestphp/pest-plugin: ^3.0
- vlucas/phpdotenv: ^5.6
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-25 02:05:34 UTC
README
Note
Editor isn't a plugin for site owners to install. It's a library for your own Craft plugins and modules, and it arrives on a site as a dependency of the plugin that uses it, such as Comments.
Editor for Craft CMS
Editor is a Craft CMS library that gives your plugins and modules a front-end rich-text editor, along with the server code that sanitises and renders what people write. When your plugin lets people write something on the front end, such as a comment, a reply or a message, Editor provides the editor they write in and checks everything it sends. Your plugin keeps its own records, permissions and notifications.
Features
- A clear writing area with its tools in a row under the text, a toolbar above any selected words, and Markdown shortcuts.
- Presets and per-context settings that choose which features each editor offers and the order of its tools.
- One link control for any address or a page on your Craft site.
- Mentions, with suggestions showing each person's photo or initials, name and a line about them.
- Photo and file uploads in a tray under the text, with progress, alt text and retries. Photos lose their metadata, including where they were taken, before they're stored.
- GIF search through GIPHY, for contexts that turn it on.
- A Post button, character limits, saved drafts and error messages, while your own code does the posting.
- Four themes that take your site's colours, with collapsed, borderless and narrow layouts.
- Server-side sanitising and rendering, so a saved document only ever contains what its context allows.
- The
@verbb/editornpm package and<verbb-editor>element for front ends you build yourself.
Documentation
Visit the Editor documentation for all documentation, guides and developer resources.
Support
Get in touch with us by creating a GitHub issue.
Sponsor
Editor is licensed under the MIT license, so it will always be free and open source. If you'd like to support it anyway, you can sponsor its development.