wysiwyg-rails
wysiwyg-rails provides the Froala WYWIWYG Editor javascript and stylesheets as a Rails engine for use with the asset pipeline.
Installation
Add this to your Gemfile:
gem "wysiwyg-rails"
and run bundle install
.
Usage
In your application.css
, include the css file:
/*
*= require froala_editor.min.js
*/
In your application.js
, include the js file:
//
//= require froala_editor.min.js
//
Then restart your webserver if it was previously running.
Congrats all is done!
License
The wysiwyg-rails
project is under MIT license.
You may use the editor for non-commercial websites for free under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
Froala Editor has 3 different licenses for commercial use. For details please see License Agreement.