My Rails app utilizes WYSIHTML in certain sections, and the implementation looks like this:
// richtext
if($('.richtext').length) {
var editor = new wysihtml5.Editor(document.querySelector('.richtext'), {
toolbar: 'wysihtml5-toolbar',
parserRules: wysihtml5ParserRules,
stylesheets: '/assets/wysihtml5-stylesheet.css'
});
}
While everything works fine locally, the issue arises when trying to access wysihtml5-stylesheet.css
remotely. I have made attempts to adjust asset pipeline settings and precompilation without success. Any suggestions? This problem seems to have surfaced recently, as it was functioning properly before. No settings other than those mentioned previously have been altered.
Your assistance would be greatly appreciated.
Update
Despite using asset_path
, the file remains inaccessible:
stylesheets: '<%= asset_path "wysihtml5-stylesheet.css" %>'