From 1c7a30e32a67c86fdf378f11f831eaf2133bd1d2 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Tue, 19 May 2026 14:46:44 +0800 Subject: [PATCH] =?UTF-8?q?perf(X-Pack):=20=E9=98=88=E5=80=BC=E5=91=8A?= =?UTF-8?q?=E8=AD=A6-=E5=AF=8C=E6=96=87=E6=9C=AC=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E5=99=A8=E8=87=AA=E5=8A=A8=E6=88=AA=E5=8F=96=E8=87=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E9=93=BE=E6=8E=A5=E5=9C=B0=E5=9D=80=20#18366?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/rich-text/TinymacEditorAlarm.vue | 3 +++ .../core-frontend/src/components/rich-text/TinymceEditor.vue | 5 ++++- .../src/custom-component/rich-text/DeRichEditor.vue | 5 ++++- .../src/custom-component/rich-text/DeRichTextView.vue | 3 +++ 4 files changed, 14 insertions(+), 2 deletions(-) diff --git a/core/core-frontend/src/components/rich-text/TinymacEditorAlarm.vue b/core/core-frontend/src/components/rich-text/TinymacEditorAlarm.vue index f0d533f5a0..72e43887a2 100644 --- a/core/core-frontend/src/components/rich-text/TinymacEditorAlarm.vue +++ b/core/core-frontend/src/components/rich-text/TinymacEditorAlarm.vue @@ -80,6 +80,9 @@ const init = ref({ outer_placeholder: '双击输入文字', inline: false, branding: true, + relative_urls: false, + remove_script_host: false, + convert_urls: false, setup: editor => { const emoticons = ` diff --git a/core/core-frontend/src/components/rich-text/TinymceEditor.vue b/core/core-frontend/src/components/rich-text/TinymceEditor.vue index cb64616120..35d03f557e 100644 --- a/core/core-frontend/src/components/rich-text/TinymceEditor.vue +++ b/core/core-frontend/src/components/rich-text/TinymceEditor.vue @@ -71,7 +71,10 @@ const init = ref({ placeholder: '', outer_placeholder: '双击输入文字', inline: inline.value, - branding: true + branding: true, + relative_urls: false, + remove_script_host: false, + convert_urls: false }) tinymce.init({}) 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 62d56883f7..d1f561f55d 100644 --- a/core/core-frontend/src/custom-component/rich-text/DeRichEditor.vue +++ b/core/core-frontend/src/custom-component/rich-text/DeRichEditor.vue @@ -65,7 +65,10 @@ const init = reactive({ language: 'zh_CN', //语言 skin_url: formatDataEaseBi('./tinymce-dataease-private/skins/ui/oxide'), // skin路径,具体路径看自己的项目 height: 400, //编辑器高度 - branding: false, //是否禁用“Powered by TinyMCE” + branding: false, //是否禁用”Powered by TinyMCE” + relative_urls: false, + remove_script_host: false, + convert_urls: false, menubar: true, //顶部菜单栏显示 image_dimensions: false, //去除宽高属性 plugins: props.plugins, //这里的数据是在props里面就定义好了的 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 e0c0add4ec..9fb8c8881a 100644 --- a/core/core-frontend/src/custom-component/rich-text/DeRichTextView.vue +++ b/core/core-frontend/src/custom-component/rich-text/DeRichTextView.vue @@ -181,6 +181,9 @@ const init = ref({ outer_placeholder: outerPlaceholder, inline: true, // 开启内联模式 branding: false, + relative_urls: false, + remove_script_host: false, + convert_urls: false, icons: 'vertical-content', vertical_align: element.value.propValue.verticalAlign, table_default_styles: {