Ecosyste.ms: Awesome
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: 28 days ago
JSON representation
jQuery CLEditor Plugin for Rails 3.1 Asset Pipeline
- Host: GitHub
- URL: https://github.com/seanbehan/cleditor_rails
- Owner: seanbehan
- Created: 2011-07-12T04:37:38.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2013-06-26T15:00:50.000Z (over 11 years ago)
- Last Synced: 2024-11-16T16:11:43.933Z (3 months ago)
- Language: Ruby
- Homepage: http://rubygems.org/gems/cleditor_rails
- Size: 146 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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: