this.editorCtx.insertImage({
src: emoji.src,
width: this.eSize,
height: this.eSize,
extClass: 'emoji',
data: {
name: emoji.regName
}
})

- 发布:2024-06-21 21:20
- 更新:2025-03-14 16:23
- 阅读:146
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: win10
HBuilderX类型: Alpha
HBuilderX版本号: 4.19
手机系统: Android
手机系统版本号: Android 12
手机厂商: OPPO
手机机型: PDKM00
页面类型: vue
vue版本: vue2
打包方式: 云端
项目创建方式: HBuilderX
示例代码:
操作步骤:
'''this.editorCtx.insertImage({
src: emoji.src,
width: this.eSize,
height: this.eSize,
extClass: 'emoji',
data: {
name: emoji.regName
}
})'''
'''this.editorCtx.insertImage({
src: emoji.src,
width: this.eSize,
height: this.eSize,
extClass: 'emoji',
data: {
name: emoji.regName
}
})'''
预期结果:
立即执行@input回调
立即执行@input回调
实际结果:
延迟1秒才执行
延迟1秒才执行
bug描述:
任何手机,使用editor组件使用insertImage方法插入,@input延迟1秒才执行,怎么解决这个问题
4 个回复
2***@qq.com (作者)
希望可以得到解决方法
2***@qq.com (作者)
2***@qq.com (作者)
RushMan
同,现在再插入成功之后获取文本重新获取一下文本就有了