Browse Source

wangeditor兼容新版本

master
hupeng 4 years ago
parent
commit
c1e27e93f3
  1. 3
      src/views/components/Editor.vue

3
src/views/components/Editor.vue

@ -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

Loading…
Cancel
Save