editor组件使用setcontents设置列表时无效?
发布于 5 年前 作者 gongwei 11138 次浏览 来自 问答

富文本显示如下

editor打开后,加粗有显示,但是列表就不显示了

html

<ol><li>asdf<strong>adfas</strong></li><li><strong>a</strong></li><li><strong>a</strong></li><li><strong>sadf</strong></li></ol>

js

setContents(html){
    this.editorCtx.setContents({
				    html: html
    });
  }
1 回复

请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。

回到顶部