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

Recursive redactor box #138

Closed wakakokorosensei closed 9 years ago

wakakokorosensei commented 9 years ago

Hello I'm relatively new in RoR, recently I put redactor-rails in my project test, but I have an issue. I start my page with one redactor box, after save the content I want to create another text with redactor, but I have two redactor boxes in the same page, and this is recursive every time I save the content, I return to create another text I have one more redactor box.

I have this lib ruby 2.0 rails 4.1.8 bootstrap 3.3.4

image

thank you very much

luaysuarna commented 9 years ago

Hi Guy, I think that issue because turbolinks, or you call redactor more a time. And If you want to override redactor, please still on redactor assets > javascript > redactor-rails > config.js

wakakokorosensei commented 9 years ago

Hello guy, yes you were right, I take off this line //= require turbolinks in application.js and now redactor works perfect. But I think this is a problem with turbolinks and bootstrap Thank you very much for help me,