From 0d0327f956dba33063e8a0fa9304637ca0e91993 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Czouyf=E2=80=9D?= <80906036@qq.com> Date: Wed, 20 Nov 2024 16:20:09 +0800 Subject: [PATCH] 1 --- src/renderer/src/components/tinymce/tinymce.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/renderer/src/components/tinymce/tinymce.vue b/src/renderer/src/components/tinymce/tinymce.vue index 9db1026..eb55e08 100644 --- a/src/renderer/src/components/tinymce/tinymce.vue +++ b/src/renderer/src/components/tinymce/tinymce.vue @@ -113,13 +113,14 @@ const loading = ref(false); const tinymceId = ref( "vue-tinymce-" + +new Date() + ((Math.random() * 1000).toFixed(0) + "") ); + //定义一个对象 init初始化 const init = reactive({ selector: "#" + tinymceId.value, //富文本编辑器的id, - skin_url: "/tinymce/skins/ui/oxide", // skin路径,具体路径看自己的项目 - content_css: "/tinymce/skins/content/default/content.css", //以css文件方式自定义可编辑区域的css样式,css文件需自己创建并引入 - language_url: "/tinymce/langs/zh_CN.js", // 语言包的路径,具体路径看自己的项目 + skin_url: "../../../public/tinymce/skins/ui/oxide", // skin路径,具体路径看自己的项目 + content_css: "../../../public/tinymce/skins/content/default/content.css", //以css文件方式自定义可编辑区域的css样式,css文件需自己创建并引入 + language_url: "../../../public/tinymce/langs/zh_CN.js", // 语言包的路径,具体路径看自己的项目 language: "zh_CN", editable_root: props.editable_root,