A plugin to use the Trix WYSIWYG editor within in Administrate.
Forked from headwayio/administrate-field-trix
Add trix-rails and administrate-field-trix
to your Gemfile
:
gem 'trix-rails', require: 'trix'
gem 'administrate-field-trix'
Install:
$ bundle install
Add a Trix field to app/dashboards/foo_dashboard.rb
:
ATTRIBUTE_TYPES = {
bar: Field::Trix
}.freeze
If you're using the Rails asset pipeline, add the following to app/assets/config/manifest.js
:
//= link administrate-field-trix/application.css
//= link administrate-field-trix/application.js