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

Adjust readme for asset locations #127

Closed anathematic closed 9 years ago

anathematic commented 9 years ago

Hi guys, Noticed the documentation wasn't pointing to the correct location, unless I'm missing something with the setup this should help people kick off a little easier :-D

Cheers!

wilgoszpl commented 9 years ago

How did you test that?

You need to load two files: //= require redactor-rails/config //= require redactor-rails/redactor

When I'll include line //= require redactor-rails the editor is loaded properly.

How it works:

There is a file "index.js" in the /vendor/javascripts/redactor-rails - it is loaded automatically. Inside that you can see requirement of config.js and redactor.js files.

Please, notify me if I'd missed something.

anathematic commented 9 years ago

Ahaha I see what I've done here, I was preforming a SASS include and upon not finding CSS file assumed the rest.

Sorry about that @wilgoszpl - I'll close this.

wilgoszpl commented 9 years ago

No worry.