Ask A Question

Notifications

You’re not receiving notifications from this thread.

ActionText / Trix Editor

Mountaindog asked in Rails

I'm working on upgrading an app from Rails 6.1.x to 7.0.1 with esBuild for JS. I am having trouble getting ActionText, in particular the Trix editor toolbar, to work correctly when running in production environment? What's odd, if I add this:
@import 'trix/dist/trix.css'; to application.bootstrap.scss it works when in development using bin/dev but not in production.

I found this issue on GitHub, which is more or less the same. Wondering if anyone else has experienced this as well.
https://github.com/rails/rails/issues/43441

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 86,946+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.