Administrate Custom Fields and the Trix Editor Discussion
Discussion for
Administrate Custom Fields and the Trix Editor
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/
Apparently someone took Chris up on his challenge: