SammyLin / redactor-rails

This repo is deprecated. Please check out official gem for Redactor 2. https://github.com/Redactor2/redactor2_rails
MIT License
390 stars 254 forks source link

Update the Gem? #160

Open vayu-technology opened 8 years ago

vayu-technology commented 8 years ago

redactor-rails gem 0.5.0 was released on February 24, 2015

Current codebase has commits from 2nd August 2015.

The reason I ask is because I just got caught out with the original image upload being returned instead of the content image. The github codebase had the changes but the gem did not. :/

richpeck commented 7 years ago

Why not pull from master branch in the Gemfile:

#Gemfile 
gem 'redactor-rails', github: "sammylin/redactor-rails"
caJaeger commented 7 years ago

@richpeck Because at any given moment your production code could stop working with a bad commit in this project.

NetScrn commented 7 years ago

And it does not work with turbolinks 5 :(

denys-chaikovskyi commented 7 years ago

@NetScrn to make it works with Turbolinks 5 you can just do the following in config.js (generated by rails generate redactor:config): replace the ready page:load with turbolinks:load, so it will look like this:

before:

$(document).on( 'ready page:load', window.init_redactor );

after:

$(document).on( 'turbolinks:load', window.init_redactor );`