Hello guys! New day, new problem..! :sweat_smile: ...
# support
h
Hello guys! New day, new problem..! ๐Ÿ˜… It's related to this first post. Now, i try to add action_text to my project. I want to add the content of my articles with a rich text area. I think it's work but nothing appears. It's maybe the js part of trix / action text ? I join a screen capture in comment.. Thanks !
โœ… 1
i added :
Copy code
//= require("trix")
//= require("@rails/actiontext")
in vendor/assets/javascript/spree/backend/all.js
but i hope that my rails 7 app (with importmap) doesn't impact the action text install...
w
Do you have any errors in the JS console?
h
No. I also tried to do
rails assets:precompile
sometimes..
w
h
Yes, but i think my file application.js is not used for the store. I don't remember if i tried to use import in vendor/assets/javascript/spree/backend/all.js
Thats ok, i find the solution : overwrite the admin layout to add
<%= javascript_importmap_tags %>
Thank you!
(or maybe something else i tried before..)
w
Glad to know ๐Ÿ™‚