The Redactor editor (version 9.1.4) bundled as an asset for the rails asset pipeline.
Add this line to your application's Gemfile:
gem 'redactorjs-rails'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install redactorjs-rails
In your application.css
, add the following line to include the Redactor CSS:
/*
*= require redactorjs-rails/redactor
*/
In your application.js
, add the following line to include the Redactor library:
//= require redactorjs-rails/redactor
To load a specific language, for example French (with the language code fr
):
//= require redactorjs-rails/langs/fr
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
The redactorjs-rails
project is under an MIT-LICENSE.
Redactor has three different licenses available for use. For further details please see the License Agreement.