spohlenz/tinymce-rails — Issue #25: Set content_css to application css
Author: obduk
Created: 2011-11-17 12:32:13+00:00
State: open

Is it possible to add a method to be able to include all stylesheets from the application when compiled using the rails 3.1 asset pipeline so that the editor styling is the same as the rest of the website.

As a work around, I have implemented a dirty hack where the content_css init variable is set to the following:

stylesheet_link_tag('application').split("\n").map{|stylesheet| stylesheet.match(/href="([^"]+)"/).to_a[1]}.join(",")

If anyone has any other ideas of a better way of achieving this, that would be great.

Thanks,

Owen