w***@163.com
w***@163.com
  • 发布:2022-06-22 15:51
  • 更新:2022-06-22 15:51
  • 阅读:175

H5调用editor菜单按钮不显示

分类:uni-app

editor组件的菜单栏显示不出来,代码如下,附件里是效果,请大家指教

<template>
<view class="container">
<editor id="editor" v-model="model.content" class="ql-container" :placeholder="开始输入..." @ready="onEditorReady"></editor>
</view>
</template>

methods: {
onEditorReady() {
uni.createSelectorQuery().select('#editor').context((res) => {
this.editorCtx = res.context
}).exec()
}

2022-06-22 15:51 负责人:无 分享
已邀请:

要回复问题请先登录注册