0
嗨,所以我想使用tinymce並使所有工作都在調試模式下工作。這裏是我的js.erb文件中的代碼:在生產模式下使用TinyMCE content_css的軌道沒有正確鏈接
function tinymce_load(){
tinymce.init({
selector: "textarea.mceEditor",
plugins: [
"advlist autolink lists link image charmap print preview anchor",
"searchreplace visualblocks code fullscreen autoresize",
"insertdatetime media table contextmenu paste textcolor"
],
menu : "core",
toolbar1: "bold italic | alignleft aligncenter alignright alignjustify | styleselect formatselect fontselect fontsizeselect",
toolbar2: "cut copy paste | searchreplace | bullist numlist outdent indent blockquote | undo redo | link unlink anchor image media code | preview | forecolor backcolor",
toolbar_items_size: 'small',
content_css : "<%= asset_path 'website.css' %>"
});
}
我的問題是當我在生產模式下運行時,它無法找到資產website.css。我認爲這是因爲當我編譯我的資產時,它將它們編譯成一個css文件。有沒有辦法讓這個工作?