修复JEditor上传图片无法回显的问题

This commit is contained in:
zer0Black
2023-09-04 21:22:34 +08:00
parent 2bac8d8fae
commit 0b3c57f677
+2 -3
View File
@@ -79,15 +79,14 @@ export default {
const img = 'data:image/jpeg;base64,' + blobInfo.base64()
success(img)
} else {
const img = getFileAccessHttpUrl(res.message)
const img = getFileAccessHttpUrl(res.result.id)
success(img)
}
}
})
},
paste_postprocess: function(plugin, args) {
console.log(args.node,"kkkkkk");
args.node.setAttribute('id', 'hello');
args.node.setAttribute('id', 'hello')
},
init_instance_callback: editor => {
if (this.value) {