提交 0ef75402 编写于 作者: DCloud_JSON's avatar DCloud_JSON

修复 部分情况下,插入的表情包的位置不正确的问题

上级 3eb19dc5
......@@ -244,7 +244,10 @@
this.addHtmlToCursor(uniCodeEmoji,false)
},
addHtmlToCursor(html,focus=true) {
// 因为可能在点击某个元素后失去了光标,所以需要延迟让lastCursor更新后在插入
setTimeout(()=>{
this.$refs.editor.callRmd('$addHtmlToCursor',html,focus)
},100)
},
setContent(content) {
console.log('setContent', content);
......@@ -318,7 +321,7 @@
background-color: #2faf4c;
height: 28px;
line-height: 28px;
padding: 0 10px;
padding: 0 8px;
text-align: center;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册