Created
December 27, 2018 05:41
-
-
Save vmcilwain/4e54147cfdf49aad28222241e6a4014e to your computer and use it in GitHub Desktop.
Disable trix editor toolbar in rails
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This works with the'trix-rails' gem. No reason it shouldn't work with basecamp/trix | |
# Code needs to have its on toobar specified. In my case I used toobar: :no_bar | |
=f.trix_editor :prompt_text, toolbar: :no_toolbar | |
# This creates the auto expanding text area without a toobar. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment