EditorContext.getContents报错

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

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

2 回复
nzhou
nzhou1 楼6 年前
yang19
yang192 楼5 年前

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>