A rich text editor for everyday writing
open sourceMITself-hostablefree
Trix is a WYSIWYG editor for the simple documents web apps are made of: messages, comments, articles and lists. It's a custom element (<trix-editor>) with its own document model rather than contenteditable commands, supports embedded attachments such as images and files, and outputs short, consistent HTML. 37signals built it for Basecamp in 2015, and it's the editor behind Rails' Action Text since Rails 6; Lexxy, built on Lexical, is its successor in Rails.
Problems it solves
- a WYSIWYG editor for comments and messages that outputs clean, consistent HTML
- let users paste and attach images and files inside a text field
- rich text editing for a Rails app's Action Text fields
- a simple rich text editor that doesn't produce messy markup from contenteditable
Features
- <trix-editor> custom element
- own document model
- embedded attachments
- terse, consistent HTML output
- undo and redo
- Action Text integration in Rails
Alternatives
The same job
These do what Trix does.
- Lexxy A modern rich text editor for Rails
- Quill Quill is a modern WYSIWYG editor built for compatibility and extensibility
- Tiptap The headless rich text editor framework for web artisans
- CKEditor 5 Powerful rich text editor framework with a modular architecture, modern integrations, and features like collaborative editing
- TinyMCE The world's #1 JavaScript library for rich text editing
- Lexical An extensible text editor framework that provides excellent reliability, accessibility and performance