Skip to content

Latest commit

 

History

History
49 lines (33 loc) · 822 Bytes

readme.md

File metadata and controls

49 lines (33 loc) · 822 Bytes

jQuery CLEditor plugin

Rails 3.1 Asset Plugin

Install

Add to your Gemfile

gem 'jquery-rails'
gem 'cleditor_rails'

bundle install

Edit app/assets/javascripts/application.js and add

//= require jquery
//= require cleditor

And in app/assets/stylesheets/application.css add

/*
*= require_self
*= require cleditor
*/

Usage

// specify editor controls if you like
$.cleditor.defaultOptions.controls = "style bold italic underline strikethrough image link undo redo";

$('textarea').cleditor();

Please see http://premiumsoftware.net/cleditor/docs/GettingStarted.html guide for customization

Credits

The jQuery code was written by Chris Landowski

Project links: https://github.com/cleditor/cleditor
http://premiumsoftware.net/cleditor/