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({})