fix: loading trix editor overwrite in production

This commit is contained in:
Philipp Rothmann 2023-08-23 12:17:32 +02:00
parent a96f21134e
commit 1e63c59a8a
3 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,4 @@
// Configure your import map in config/importmap.rb. Read more: https://github.com/rails/importmap-rails
import "trix"
import "@rails/actiontext"
import "./trix-editor-overrides"
import "trix-editor-overrides"

View File

@ -2,3 +2,4 @@
pin "application", preload: true
pin "trix"
pin "@rails/actiontext", to: "actiontext.js"
pin "trix-editor-overrides"

View File

@ -9,4 +9,4 @@ Rails.application.config.assets.version = '1.0'
# Precompile additional assets.
# application.js, application.css, and all non-JS/CSS in the app/assets
# folder are already added.
Rails.application.config.assets.precompile += %w[application_legacy.js jquery.min.js]
Rails.application.config.assets.precompile += %w[application_legacy.js jquery.min.js trix-editor-overrides.js]