Skip to content
Wei-Meng Lee edited this page Jul 7, 2014 · 7 revisions

http://jhollingworth.github.com/bootstrap-wysihtml5/

Add gem 'bootstrap-wysihtml5-rails', '0.3.1.24' to your Gemfile.

Note: The last version of bootstrap-wysihtml5-rails that will work out of the box with rails_admin is 0.3.1.24 as that is the last version that supports Bootstrap 2.

Then update config file config/initializers/rails_admin.rb

RailsAdmin.config do |config|
  config.model Team do
    edit do
      # For RailsAdmin >= 0.5.0
      field :description, :wysihtml5
      # For RailsAdmin < 0.5.0
      # field :description do
      #   bootstrap_wysihtml5 true
      # end
    end
  end
end

# To configure the editor bar pass a hash of options:
# For RailsAdmin >= 0.5.0
field :description, :wysihtml5 do
  config_options :html => true
end   

More here

Clone this wiki locally