修改编辑器复制错误

This commit is contained in:
jacky 2024-05-23 12:06:39 +08:00
parent 2406ad3b16
commit e45d151376
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ const customPaste = (editor, event, callback) => {
// //
loadingShow.value = true loadingShow.value = true
let htmlData = event.clipboardData.getData('text/html') // html let htmlData = event.clipboardData.getData('text/html') // html
console.log(htmlData) // console.log(htmlData)
if (htmlData == "") { if (htmlData == "") {
htmlData = event.clipboardData.getData('text/plain') // html htmlData = event.clipboardData.getData('text/plain') // html
// console.log(htmlData) // console.log(htmlData)