Skip to content

Instantly share code, notes, and snippets.

@vmcilwain
Created December 27, 2018 05:41
Show Gist options
  • Save vmcilwain/4e54147cfdf49aad28222241e6a4014e to your computer and use it in GitHub Desktop.
Save vmcilwain/4e54147cfdf49aad28222241e6a4014e to your computer and use it in GitHub Desktop.
Disable trix editor toolbar in rails
# 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