Merge pull request #2975 from dataease/pr@dev@fix_login_foot_setting

fix(系统管理-外观配置): 登录页脚富文本编辑器删除非必要功能
This commit is contained in:
fit2cloud-chenyw 2022-08-29 21:51:44 +08:00 committed by GitHub
commit 25e46f41f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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