Formtastic::Trix

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

Usage

Add trix.css to your application.css file and trix.js to your application.js file.

In your formtastic form, implement the Trix editor like so:

<%= semantic_form_for(@user) do |f| %>
  <%= f.inputs do %>
    <%= f.input :bio, as: :trix %>
  <% end %>
<% end %>

Installation

Add this line to your application's Gemfile:

gem 'formtastic-trix'

And then execute:

$ bundle

Or install it yourself as:

$ gem install formtastic-trix

Contributing

Contribution directions go here.

License

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