ActiveAdmin::Trix

Trix is a text editor written for Basecamp. It's simple and cool and ActiveAdmin needed a plugin for it.

Usage

In your config/initializer/active_admin.rb add

config.register_stylesheet 'https://cdn.bootcss.com/trix/1.0.0/trix.css'
config.register_javascript 'https://cdn.bootcss.com/trix/1.0.0/trix.js'

In your activeadmin form block, implement the Trix editor like so:

 f.input :content, as: :trix

Installation

Add this line to your application's Gemfile:

gem 'activeadmin-trix'

And then execute:

$ bundle

Or install it yourself as:

$ gem install activeadmin-trix

Contributing

Contribution directions go here.

License

The gem is available as open source under the terms of the MIT License.