<view class="editor-wrapper">
<editor id="editor" @input="getText" class="ql-container" placeholder="宝贝描述越详细,越能吸引买家哦!开始编辑..."
showImgSize showImgToolbar showImgResize @statuschange="onStatusChange" :read-only="readOnly"
@ready="onEditorReady">
</editor>
</view>
onEditorReady() {
uni.createSelectorQuery().select('#editor').context((res) => {
this.editorCtx = res.context
this.editorCtx.setContents({
html: this.infos //this.infos为赋值内容从数据库查出。
})
}).exec()
},