wangeditor兼容新版本

This commit is contained in:
hupeng
2020-10-27 16:44:15 +08:00
parent e07989b941
commit c1e27e93f3

View File

@ -41,9 +41,8 @@ export default {
} }
}, },
mounted() { mounted() {
// console.log(222)
console.log(this.value)
this.editor = new E(this.$refs.editor) this.editor = new E(this.$refs.editor)
this.editor.customConfig = this.editor.customConfig ? this.editor.customConfig : this.editor.config
this.editor.customConfig.uploadImgShowBase64 = true // 使用 base64 保存图片 this.editor.customConfig.uploadImgShowBase64 = true // 使用 base64 保存图片
// 不可修改 // 不可修改
this.editor.customConfig.uploadImgHeaders = this.headers this.editor.customConfig.uploadImgHeaders = this.headers