From e8ae8bce22418f90fecf36d1eab13a2ce462121e Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Thu, 21 Mar 2024 11:20:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8A=A8=E6=80=81=E8=AE=BF=E9=97=AE?= =?UTF-8?q?=E8=B7=AF=E5=BE=84=E5=9C=BA=E6=99=AFtinymce=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E9=9D=99=E6=80=81=E8=B5=84=E6=BA=90=E8=B7=AF=E5=BE=84=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/rich-text/TinymceEditor.vue | 6 +++--- .../src/custom-component/rich-text/DeRichEditor.vue | 6 +++--- .../src/custom-component/rich-text/DeRichTextView.vue | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/core/core-frontend/src/components/rich-text/TinymceEditor.vue b/core/core-frontend/src/components/rich-text/TinymceEditor.vue index a7d9374eb4..e8812d3812 100644 --- a/core/core-frontend/src/components/rich-text/TinymceEditor.vue +++ b/core/core-frontend/src/components/rich-text/TinymceEditor.vue @@ -50,10 +50,10 @@ const tinymceId = 'tinymce-view-pf' const init = ref({ selector: '#' + tinymceId, toolbar_items_size: 'small', - language_url: formatDataEaseBi('/tinymce-dataease-private/langs/zh_CN.js'), // 汉化路径是自定义的,一般放在public或static里面 + language_url: formatDataEaseBi('./tinymce-dataease-private/langs/zh_CN.js'), // 汉化路径是自定义的,一般放在public或static里面 language: 'zh_CN', - skin_url: formatDataEaseBi('/tinymce-dataease-private/skins/ui/oxide'), // 皮肤 - content_css: formatDataEaseBi('/tinymce-dataease-private/skins/content/default/content.css'), + skin_url: formatDataEaseBi('./tinymce-dataease-private/skins/ui/oxide'), // 皮肤 + content_css: formatDataEaseBi('./tinymce-dataease-private/skins/content/default/content.css'), plugins: 'advlist autolink link image lists charmap media wordcount table contextmenu directionality pagebreak', // 插件 // 工具栏 diff --git a/core/core-frontend/src/custom-component/rich-text/DeRichEditor.vue b/core/core-frontend/src/custom-component/rich-text/DeRichEditor.vue index 1b18cac782..4a691ab51a 100644 --- a/core/core-frontend/src/custom-component/rich-text/DeRichEditor.vue +++ b/core/core-frontend/src/custom-component/rich-text/DeRichEditor.vue @@ -59,9 +59,9 @@ const tinymceId = ref('vue-tinymce-' + +new Date() + ((Math.random() * 1000).toF const init = reactive({ // inline: true, // 开启内联模式 selector: '#' + tinymceId.value, //富文本编辑器的id, - language_url: formatDataEaseBi('/tinymce-dataease-private/langs/zh_CN.js'), // 语言包的路径,具体路径看自己的项目,文档后面附上中文js文件 + language_url: formatDataEaseBi('./tinymce-dataease-private/langs/zh_CN.js'), // 语言包的路径,具体路径看自己的项目,文档后面附上中文js文件 language: 'zh_CN', //语言 - skin_url: formatDataEaseBi('/tinymce-dataease-private/skins/ui/oxide'), // skin路径,具体路径看自己的项目 + skin_url: formatDataEaseBi('./tinymce-dataease-private/skins/ui/oxide'), // skin路径,具体路径看自己的项目 height: 400, //编辑器高度 branding: false, //是否禁用“Powered by TinyMCE” menubar: true, //顶部菜单栏显示 @@ -76,7 +76,7 @@ const init = reactive({ nonbreaking_force_tab: false, paste_auto_cleanup_on_paste: false, file_picker_types: 'file', - content_css: formatDataEaseBi('/tinymce-dataease-private/skins/content/default/content.css'), //以css文件方式自定义可编辑区域的css样式,css文件需自己创建并引入 + content_css: formatDataEaseBi('./tinymce-dataease-private/skins/content/default/content.css'), //以css文件方式自定义可编辑区域的css样式,css文件需自己创建并引入 //图片上传 images_upload_handler: blobInfo => new Promise((resolve, reject) => { diff --git a/core/core-frontend/src/custom-component/rich-text/DeRichTextView.vue b/core/core-frontend/src/custom-component/rich-text/DeRichTextView.vue index 27e68ab32d..826af1b848 100644 --- a/core/core-frontend/src/custom-component/rich-text/DeRichTextView.vue +++ b/core/core-frontend/src/custom-component/rich-text/DeRichTextView.vue @@ -114,10 +114,10 @@ const myValue = ref('') const init = ref({ selector: '#' + tinymceId, toolbar_items_size: 'small', - language_url: formatDataEaseBi('/tinymce-dataease-private/langs/zh_CN.js'), // 汉化路径是自定义的,一般放在public或static里面 + language_url: formatDataEaseBi('./tinymce-dataease-private/langs/zh_CN.js'), // 汉化路径是自定义的,一般放在public或static里面 language: 'zh_CN', - skin_url: formatDataEaseBi('/tinymce-dataease-private/skins/ui/oxide'), // 皮肤 - content_css: formatDataEaseBi('/tinymce-dataease-private/skins/content/default/content.css'), + skin_url: formatDataEaseBi('./tinymce-dataease-private/skins/ui/oxide'), // 皮肤 + content_css: formatDataEaseBi('./tinymce-dataease-private/skins/content/default/content.css'), plugins: 'advlist autolink link image lists charmap media wordcount table contextmenu directionality pagebreak', // 插件 // 工具栏