editor的 insertImage API,插入图片后会多了个<p><br></p>?
富文本编辑器editor的 insertImage API,插入图片后会多了个<p><br></p>
let that = this;this.editorCtx.insertImage({ src: "https://www.hongbk.club/emotion/"+this.emotion[index].name+".png", extClass: 'emoji_img', success() { that.editorCtx.getContents({ success(res) { console.log(res.html) } }) }}) |
打印的结果:

