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

Script is loaded twice with turbolinks. #129

Closed wilgoszpl closed 9 years ago

wilgoszpl commented 9 years ago

Those two lines are launched one after another.

$(document).ready( window.init_redactor ); $(window).bind('page:change', window.init_redactor);

It means, it works correctly on turbolinks when user click on turbolink and 'page:change' will be triggerred. However, after page refresh, script is loaded twice - it generates two identical text area