An open API service indexing awesome lists of open source software.

https://github.com/seanbehan/cleditor_rails

jQuery CLEditor Plugin for Rails 3.1 Asset Pipeline
https://github.com/seanbehan/cleditor_rails

Last synced: 4 months ago
JSON representation

jQuery CLEditor Plugin for Rails 3.1 Asset Pipeline

Awesome Lists containing this project

README

        

# jQuery CLEditor plugin
Rails 3.1 Asset Plugin

## Install

Add to your Gemfile

```ruby
gem 'jquery-rails'
gem 'cleditor_rails'
```

bundle install

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

```javascript
//= require jquery
//= require cleditor
```

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

```css
/*
*= require_self
*= require cleditor
*/
```

## Usage

```javascript

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

$('textarea').cleditor();
```

Please see guide for customization

## Credits

The jQuery code was written by Chris Landowski

Project links: