Skip to content

seanbehan/cleditor_rails

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/

About

jQuery CLEditor Plugin for Rails 3.1 Asset Pipeline

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages