Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Image upload management provided by Paperclip Gem for the Redactor Editor
Branch: master
Pull request Compare This branch is 2 commits behind EnyukaStudio:master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app
config
lib
script
.gitignore
Gemfile
Gemfile.lock
MIT-LICENSE
README.md
README.rdoc
Rakefile
redactor-paperclip-0.0.2.gem
redactor-paperclip-0.0.3.gem
redactor-paperclip.gemspec

README.md

Paperclip Gem Integration for Redactor.js

Image upload management provided by paperclip gem for the Redactor WYSIWYG editor

Installation

In your Gemfile, add the following dependencies:

gem 'paperclip'
gem 'redactor-paperclip'

Run:

$ bundle install

And then run:

rails g redactor:install

Finally run:

rake db:migrate

Usage

Add to your css file (usually app/assets/stylesheets/application.css)

*= require redactor

And to your javascript file (usually app/assets/javascripts/application.js)

//= require redactor

Initialize Redactor

In your javascript file:

$(document).ready(function()
{
     $('textarea').redactor({ imageUpload: 'paperclip' });
})        

See the Redactor Documentation for a full list of configuration options.

License

Redactor has 3 different licenses for commercial use. For details please see License Agreement.

Special Thanks

SammyLin ( redactor-rails )

Something went wrong with that request. Please try again.