1

我在 vue.js 上遇到了 tinymce 的控制台错误问题。它在 localhost 和服务器 hovewer 编辑器上都能正常工作,在服务器上抛出错误(不会在 localhost 上抛出错误)。 控制台错误

这是我的导入部分[我已经尝试过动态和静态导入文件,但是错误仍然存​​在]

<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.5.17/vue.js">

import Editor from "@tinymce/tinymce-vue";
import "tinymce/tinymce";

// Theme
import "../../../../../../node_modules/tinymce/themes/silver/theme";


// Skins
import "../../../../../../node_modules/tinymce/skins/ui/oxide/skin.min.css";
import "../../../../../../node_modules/tinymce/skins/ui/oxide/content.min.css";
import "../../../../../../node_modules/tinymce/skins/content/default/content.min.css";

// Plugins
import "../../../../../../node_modules/tinymce/plugins/fullscreen";
import "../../../../../../node_modules/tinymce/plugins/paste";
import "../../../../../../node_modules/tinymce/plugins/autoresize";

import "../../../../../../node_modules/tinymce/icons/default";
</script>

4

1 回答 1

1

我已经解决了将:init="{content_css: false, skin: false}"属性写入编辑器标签的问题

于 2021-09-08T09:31:42.360 回答