Chuck

Joined

3,050 Experience
30 Lessons Completed
0 Questions Solved

Activity

Another shortcut to the root route is that you can drop the to:
root: "main#index"

Posted in ActionText remove attach file button from Trix editor

I know this is old but you can add an event listener in application.js:

document.addEventListener("trix-file-accept", (e) => {
    e.preventDefault()
})

and then target the UI with CSS in application.scss:

.trix-button-group--file-tools {
  display: none !important;
}

I am having the same issue. I did find out that in the event, event.item.dataset.id is empty. I am not sure why.

Did you find a solution? I am wondering the same thing.

Posted in Tabs with Stimulus

Ok Chris I just joined here and this package makes it worth it. A smooth dropdown menu. Great job and thanks.

logo Created with Sketch.

Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

© 2021 GoRails, LLC. All rights reserved.