Ask A Question

Notifications

You’re not receiving notifications from this thread.

Administrate Custom Fields and the Trix Editor Discussion

Chris, the picture of you remains frozen for few seconds on 0:09, and 0:55.

Reply
I am trying to figure out how to add a scroll bar to the textarea in Trix. Any suggestions? I'm using the gem. If there is a lot of content in the textarea, you have to scroll all the way back up just to change a word to bold or italic, etc., and then scroll all the way back to where you were, if you can find it. You can try it out yourself right here. 
Reply
You can use the overflow CSS style. Add a class to the trix body and style like so:

trix-content {  max-height: 800px !important;  overflow-y: auto; }

I hope that helps
Reply
Hey Chidozie, that is very helpful. I'm using the trix gem, though, I don't think I can edit the css. I may have to do it manually. 
Reply

I remembered posting about this. I found this article on how to make the Trix toolbar sticky, in case anyone is interested.
https://tosbourn.com/sticky-trix-toolbar/

Reply
Reply
Join the discussion
Create an account Log in

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

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

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