Skip to content

ianwalter/administrate-field-trix

Repository files navigation

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 'trix-rails', require: 'trix'
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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •