Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overriding default editor CSS filename is not possible with sprockets-rails #165

Open
pluff opened this issue Aug 27, 2014 · 0 comments
Open

Comments

@pluff
Copy link

pluff commented Aug 27, 2014

Hello everyone.

The problem:
when I try to override editor contentsCss option to something non-default it doesn't go through sprockets properly. E.g.:

#config/initializers/rich.rb
.....
config.editor[:contentsCss] = ActionController::Base.helpers.stylesheet_path('rich/custom.css') 
# => '/stylesheets/rich/custom.css'.  expected '/assets/rich/custom-longhash.css'

The root of the problem: sprockets-rails adds digesting in "after_initialize" block so there is no digesting in initializers.

Am I missing something?

Possible solutions:

  1. in Rich.options always pass contentsCss option to assets pipeline, not only when contentsCss == :default
  2. Allow to pass a block in contentsCss option in initializer and call it in Rich.options.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant