Project

lexxy

0.25
A long-lived project that still receives updates
A new editor for Action Text based on Meta's Lexical framework.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

Lexxy

A modern rich text editor for Rails.

Important

This is an early beta. It hasn't been battle-tested yet. Please try it out and report any issues you find.

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 an early beta. Here's what's coming next:

  • Configurable editors in Action Text: Choose your editor like you choose your database.
  • More editing features:
    • Tables
    • Text highlighting
  • Configuration hooks.
  • Standalone JS package: to use in non-Rails environments.
  • 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.