From f367b3ad1aa66831a2459d0a45fe4b0144d965c8 Mon Sep 17 00:00:00 2001 From: sc Date: Sat, 13 Aug 2022 10:48:53 +0800 Subject: [PATCH] =?UTF-8?q?FIX=20Editor=20=E4=B8=8A=E4=BC=A0=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E8=87=AA=E5=8A=A8=E8=BD=AC=E6=8D=A2=E7=9B=B8=E5=AF=B9?= =?UTF-8?q?=E8=B7=AF=E5=BE=84=EF=BC=8C=E5=B9=B6=E4=B8=94=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?props=20options?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/scEditor/index.vue | 8 +++++++- src/views/vab/editor.vue | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/components/scEditor/index.vue b/src/components/scEditor/index.vue index 7719035d..9d771811 100644 --- a/src/components/scEditor/index.vue +++ b/src/components/scEditor/index.vue @@ -59,6 +59,10 @@ templates: { type: Array, default: () => [] + }, + options: { + type: Object, + default: () => {} } }, data() { @@ -86,6 +90,7 @@ quickbars_insert_toolbar: false, image_caption: true, image_advtab: true, + convert_urls: false, images_upload_handler: function(blobInfo) { return new Promise((resolve, reject) => { const data = new FormData(); @@ -113,7 +118,8 @@ },0) } }) - } + }, + ...this.options }, contentValue: this.modelValue } diff --git a/src/views/vab/editor.vue b/src/views/vab/editor.vue index 4a5eb62b..d056c0d3 100644 --- a/src/views/vab/editor.vue +++ b/src/views/vab/editor.vue @@ -13,6 +13,7 @@ 自定义工具栏,使用"|"竖杠分割,使用"\"斜杠分组,默认:'undo redo | forecolor backcolor bold italic underline strikethrough link | blocks fontfamily fontsize | \ alignleft aligncenter alignright alignjustify | outdent indent | numlist bullist | pagebreak | \ image media table template preview | code selectall' + 支持tinymce的其他配置项