微信小程序中的editor富文本标签?

发布于 7 年前作者 yangxue14956 次浏览最后编辑 7 年前来自 issues

请问有人知道<editor></editor>如何给这标签附上初始数据吗?

还有就是如何让他自动聚焦focus

2 回复
fujing
fujing1 楼6 年前

bindready=“onEditorReady” EditorContext.setContents({ html:“出入的内容”})

hhu
hhu2 楼5 年前

onEditorReady