Tinymce 在 Heroku 服务器上部署的 Rails 项目中不工作

Tinymce is not working in Rails project deployed on Heroku server

我的 Rails 5 项目中的 tinymce 编辑器有问题。

它在我的本地环境中运行良好,但在 Heroku 上出现错误。

Resource interpreted as stylesheet but transferred with MIME type text/html

其他都可以,只有tinymce不行

请有人帮我解决这个问题!!!

我遇到了同样的问题。

我的问题是因为我将 tinymce 样式表文件放置到 app/assets 目录。

我将它们移到了 public/assets 目录,对我来说效果很好。

希望对您有所帮助!