Skip to main content

Administrate Custom Fields and the Trix Editor Discussion

General • Asked by Chris Oliver

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


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. 
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
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. 

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/



Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 22,346+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.