SammyLin / redactor-rails

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

My textarea stays a plain old textarea #30

Closed jmuheim closed 11 years ago

jmuheim commented 11 years ago

I'm using Carrierwave/Mongoid and run exactly all the steps to install Redactor. Sadly, when wanting to use it on one of my textarea, simply nothing happens.

<%= text_area_tag :editor, "", :class => "redactor", :rows => 40, :cols => 120 %>

The textarea stays a plain old textarea. How can I try to track this down to the problem? Thank you.

SammyLin commented 11 years ago

It's possible that your project don't import redactor.

brunomac commented 11 years ago

same here.... rails 3.2.8 redactor-rails 0.3.2

venocl commented 11 years ago

same here.... rails 3.2.8 redactor-rails 0.3.2 too redactor.min.js is loaded

chrome console says: Uncaught TypeError: Cannot read property 'mozilla' of undefined

a.paragraphy a.build a.init a (anonymous function) jQuery.extend.each jquery.js:632 jQuery.fn.jQuery.each jquery.js:254 jQuery.fn.redactor (anonymous function) config.js:9 fire jquery.js:1018 self.fireWith jquery.js:1128 jQuery.extend.ready jquery.js:417 DOMContentLoaded

venocl commented 11 years ago

Found the origin of the problem. The redactor versions before 8.2.2 are not compatible with jquery 1.9 (which is the actual version given by the jquery-rails gem). According to rubygems, the actual version of the gem is from September 4 2012, before the recent update redactor to 8.2.2. It is possible to use a previous version of jquery-rails, waiting for the gem to be actualized.

krnjn commented 11 years ago

+1

jmuheim commented 11 years ago

With the newest version it works. Thanks.