From 1c434ec5ec0f8dedba6b5aaa0a98a8b97f20939e Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Mon, 29 Aug 2022 21:50:55 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=B3=BB=E7=BB=9F=E7=AE=A1=E7=90=86-?= =?UTF-8?q?=E5=A4=96=E8=A7=82=E9=85=8D=E7=BD=AE):=20=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E9=A1=B5=E8=84=9A=E5=AF=8C=E6=96=87=E6=9C=AC=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E5=99=A8=E5=88=A0=E9=99=A4=E9=9D=9E=E5=BF=85=E8=A6=81=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../component-style/dialog/RemarkEditor.vue | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/frontend/src/views/chart/components/component-style/dialog/RemarkEditor.vue b/frontend/src/views/chart/components/component-style/dialog/RemarkEditor.vue index 621a06d39a..4902cbbfde 100644 --- a/frontend/src/views/chart/components/component-style/dialog/RemarkEditor.vue +++ b/frontend/src/views/chart/components/component-style/dialog/RemarkEditor.vue @@ -20,6 +20,14 @@ export default { remark: { type: String, required: true + }, + showTable: { + type: Boolean, + default: true + }, + showMedia: { + type: Boolean, + default: true } }, data() { @@ -60,6 +68,17 @@ export default { } } }, + + created() { + if(!this.showTable) { + this.init.plugins = this.init.plugins.replace(' table', '') + + } + if(!this.showMedia) { + this.init.plugins = this.init.plugins.replace(' media', '') + + } + }, mounted() { this.content = this.remark tinymce.init({})