tsechingho / ckeditor-rails

Integrate CKEditor javascript library with Rails asset pipeline
https://github.com/tsechingho/ckeditor-rails
MIT License
213 stars 134 forks source link

contents.css.scss does not override defaults in production (but contents.css does) #20

Open flatrocks opened 11 years ago

flatrocks commented 11 years ago

When I copied the default contents.css from source (with one simple change to set font-weight:bold for h1-h5) and saved it as

app/assets/stylesheets/ckeditor/contents.css.scss

it worked locally as expected. This is how the README suggests doing it. However when I deployed to production, my modified file did not override the defaults.

When I renamed

app/assets/stylesheets/ckeditor/contents.css.scss

to

app/assets/stylesheets/ckeditor/contents.css

(removing the .scss extension) it worked all the way through.

Rails 3.2.0 ckeditor_rails 4.1.1 I am using scss for other styles in the application, and that works OK. Production settings are:

config.serve_static_assets = false
config.assets.compress = true
config.assets.compile = true
config.assets.digest = true