tbraun89 tbraun89 - 1 month ago 19
Ruby Question

tinymce-rails set content_css

I'm developing an Rails application and using the tinymce-rails gem. In the TinyMce configuration I can normally set my main

content.css
file that is used by the editor, so it looks like the result while editing.

For my production environment I can set the
content_css
parameter to
application.css
because that is the only css file after
asset:precompile
, is there any trick to get the same functionality in my development environment?

Answer Source

does this work for you? content_css: '<%= asset_path 'application.css' %>'