这里写自定义目录标题
Tinymce报错误问题
使用tinymce富文本编辑器 报Refused to apply style from ‘/skin.min.css’ because its MIME type (‘text/html’) is not a supported stylesheet MIME type, and strict MIME checking is enabled.
大致意思是不支持’text/html’的MIME类型,所以拒绝加载skin.min.css样式文件;
错误如下图
奇怪的是你说他没加载样式吧;这个文本编辑器又出来了;你说他加载了样式吧;他有报这个错误;
解决的方法
skin_url: process.env.BASE_URL+'assets/tinymce/skins/ui/oxide',
content_css: process.env.BASE_URL+'assets/tinymce/skins/ui/oxide/content.min.css',
skin_url: process.env.BASE_URL+'assets/tinymce/skins/ui/oxide',
content_css: process.env.BASE_URL+'assets/tinymce/skins/ui/oxide/content.min.css',
参考文档
[1]: https://www.tiny.cloud/ 英文API网站
[2]: http://tinymce.ax-z.cn/ 中午API文档