提交 a8827859 编写于 作者: Q qiang

fix: 修复 editor 组件粘贴文字报错的问题 question/102948

上级 2e9ef422
......@@ -281,9 +281,8 @@ export default {
if (this.skipMatcher) {
return delta
}
return {
ops: delta.ops.filter(({ insert }) => typeof insert === 'string').map(({ insert }) => ({ insert }))
}
delta.ops = delta.ops.filter(({ insert }) => typeof insert === 'string').map(({ insert }) => ({ insert }))
return delta
})
this.initKeyboard($el)
this.quillReady = true
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册