redactor-rails icon indicating copy to clipboard operation
redactor-rails copied to clipboard

Update the Gem?

Open vayu-technology opened this issue 9 years ago • 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. :/

vayu-technology avatar Jun 15 '16 12:06 vayu-technology

Why not pull from master branch in the Gemfile:

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

richpeck avatar Jul 13 '16 09:07 richpeck

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

caJaeger avatar Jul 15 '16 14:07 caJaeger

And it does not work with turbolinks 5 :(

NetScrn avatar Jul 20 '16 16:07 NetScrn

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

denys-chaikovskyi avatar Aug 16 '16 08:08 denys-chaikovskyi