SammyLin/redactor-rails

Update the Gem?

Opened this issue · 4 comments

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. :/

Why not pull from master branch in the Gemfile:

#Gemfile 
gem 'redactor-rails', github: "sammylin/redactor-rails"

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

And it does not work with turbolinks 5 :(

@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 );`