Skip to content
This repository

Image upload management provided by Paperclip Gem for the Redactor Editor

branch: master
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.