鍍金池/ 問答/網(wǎng)絡(luò)安全  HTML/ WangEditor在vue中編輯內(nèi)容之后,再次獲取渲染問題

WangEditor在vue中編輯內(nèi)容之后,再次獲取渲染問題

在編輯器中編輯了內(nèi)容,發(fā)送到服務(wù)器之后,再次獲取內(nèi)容編輯時,渲染時如下問題,請問是怎么回事?
圖片描述

初始化編輯器的代碼如下

//初始化編輯器
            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轉(zhuǎn)換一下,具體百度吧

2018年7月17日 09:14
編輯回答
亮瞎她

你好想問一下,文本內(nèi)容你是怎麼渲染到文本框的,html樣式

2018年9月17日 07:16
編輯回答
放開她

樓主這個問題解決了嗎?我也遇到了,能否講解一下

2018年9月16日 22:05
編輯回答
玄鳥
editor.customConfig.uploadImgShowBase64 = false;

試試,同時自己寫上傳函數(shù)

2017年2月23日 04:25