Lexxy

A modern rich text editor for Rails.

[!IMPORTANT] This is a beta. It hasn't been battle-tested yet. Please try it out and report any issues you find.

Try it out!

Features

  • Built on top of Lexical, the powerful text editor framework from Meta.
  • Good HTML semantics. Paragraphs are real <p> tags, as they should be.
  • Markdown support: shortcuts, auto-formatting on paste.
  • Real-time code syntax highlighting.
  • Create links by pasting URLs on selected text.
  • Configurable prompts. Support for mentions and other interactive prompts with multiple loading and filtering strategies.
  • Preview attachments like PDFs and Videos in the editor.
  • Works seamlessly with Action Text, generating the same canonical HTML format it expects for attachments.

Lexxy editor screenshot

Documentation

Visit the documentation site.

Roadmap

This is a beta. Here's what's coming next:

  • [x] Configurable editors in Action Text: Choose your editor like you choose your database.
  • [x] More editing features:
    • [x] Tables
    • [x] Text highlighting
  • [x] Configuration hooks.
  • [x] Standalone JS package: to use in non-Rails environments.
  • [x] Image galleries: The only remaining feature for full Action Text compatibility
  • [ ] Install task that generates the necessary JS and adds stylesheets.

Contributing

License

The gem is available as open source under the terms of the MIT License.


CI