在编辑器中编辑了内容,发送到服务器之后,再次获取内容编辑时,渲染时如下问题,请问是怎么回事?
初始化编辑器的代码如下
//初始化编辑器
initEditor: function () {
let editor = new WangEditor('#editorElem');
editor.customConfig.onchange = (html) => {
this.form.messageContent = html
};
editor.customConfig.uploadImgShowBase64 = true;
editor.create();
if(this.editFlag === '1'){
editor.txt.html(this.form.messageContent);
}
return editor
}
上传的图片被webpack编码成base64了,需要使用blob转换一下,具体百度吧