How do I use Trix in rails 7 with cssbundling ?
How do I use trix in rails 7 with cssbundling? I know from Gemfile.lock that my new rails 7 app already has actiontext and activestorage installed The installer didn't create an application.scss file only application.bootstrap.css Previously in rails 6 I imported actiontext in application.css and then actiontext.css contained the @import 'trix/dist/trix'
same with propshaft and dartsass-rails. trix has no styles
Have you tried adding "trix" and "actiontext" to the stylesheet_link_tag call in your app/views/layouts/application.html.erb file?
stylesheet_link_tag "trix", "actiontext"
no, but i did try this, which fixed it. and now i feel foolish.
@import "trix";