fix(系统管理-外观配置): 登录页脚富文本编辑器删除非必要功能

This commit is contained in:
fit2cloud-chenyw 2022-08-29 21:50:55 +08:00
parent 045a1140d5
commit 1c434ec5ec

View File

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