Skip to content
Cody Nguyen edited this page Apr 19, 2015 · 10 revisions

This assume you want to use the FREE version of Froala Editor (which shows their badge in the editor). For more information, please see: http://www.froala.com/

How to use:

  1. Add Froala's assets gem. **Note: ** For now we'll need to use codynguyen's fork, where the assets are precompiled (which is needed for rails_admin).
  gem "wysiwyg-rails", github: "codynguyen/wysiwyg-rails"
  1. Enabling froala editor for your field is easy
edit do
  field :content, :froala
end

# Optionally providing froala options (see https://editor.froala.com/options)
edit do
  field :content, :froala do
    config_options {
      inlineMode: false,
      paragraphy: false
    }
  end
end

More here and here

Clone this wiki locally