修改编辑器复制错误
This commit is contained in:
parent
2406ad3b16
commit
e45d151376
|
|
@ -80,7 +80,7 @@ const customPaste = (editor, event, callback) => {
|
|||
// 显示蒙版
|
||||
loadingShow.value = true
|
||||
let htmlData = event.clipboardData.getData('text/html') // 获取粘贴的 html
|
||||
console.log(htmlData)
|
||||
// console.log(htmlData)
|
||||
if (htmlData == "") {
|
||||
htmlData = event.clipboardData.getData('text/plain') // 获取粘贴的 html
|
||||
// console.log(htmlData)
|
||||
|
|
|
|||
Loading…
Reference in New Issue