EditorContext.getContents报错
发布于 5 年前 作者 tsong 10525 次浏览 来自 问答

使用EditorContext.getContents,EditorContext.setContents,时都这个错 。不知道要怎么写,请指点!!!

2 回复

js:

  handleContentInput(e) {
    console.log(e)
    const value = e.detail.html
}

wxml:

<editor id="editor" class="ql-container" placeholder="{{placeholder}}" showImgSize showImgToolbar showImgResize bindstatuschange="onStatusChange" read-only="{{readOnly}}" bindready="onEditorReady" bindinput="handleContentInput">
      </editor>
回到顶部