Commit 3308eab8 by 胡悦

修改表情

1 parent bea738bc
......@@ -188,6 +188,7 @@ export default {
// 创建a标签
let node = document.createElement('img')
node.src = url
node.setAttribute('ondragstart', 'return false;')
this.insertNode(node)
},
onFocus() {
......@@ -206,6 +207,7 @@ export default {
document.querySelector('.w-textarea_input').focus()
setTimeout(() => {
this.insertNodeFirst(node)
document.querySelector('.w-textarea_input').blur()
}, 100)
}
},
......@@ -334,7 +336,7 @@ export default {
'右太极'
]
const cutImg = htm.replaceAll('<img src="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/', '')
const replaceImg = cutImg.replace(/(\d){1,2}.gif">/g, function(str) {
const replaceImg = cutImg.replace(/(\d){1,2}.gif" ondragstart="return false;">/g, function(str) {
let s = list[str.split('.')[0]]
return `[${s}]`
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!