/administrate-field-trix

A plugin to use the Trix WYSIWYG editor within in Administrate.

Primary LanguageRubyISC LicenseISC

administrate-field-trix

A plugin to use the Trix WYSIWYG editor within in Administrate.

Forked from headwayio/administrate-field-trix

Install

Add trix-rails and administrate-field-trix to your Gemfile:

gem 'administrate-field-trix'

Install:

$ bundle install

Usage

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