Skip to content

Commit

Permalink
fix:修改tiptap
Browse files Browse the repository at this point in the history
  • Loading branch information
984507092 committed Nov 18, 2024
1 parent 8c9216b commit 97416c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/view/learningNotes/12.tiptap基本教程.md
Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,7 @@ img {
const items = clipboardData.items
for (let i = 0; i < items.length; i++) {
if (items[i].type.indexOf('text') !== -1) {
// https://www.wangeditor.com/v5/editor-config.html#custompaste
const html = event.clipboardData.getData('text/html') // 获取粘贴的 html
// const text = event.clipboardData.getData('text/plain') // 获取粘贴的纯文本
// const rtf = event.clipboardData.getData('text/rtf') // 获取 rtf 数据(如从 word wsp 复制粘贴)
Expand Down

0 comments on commit 97416c6

Please sign in to comment.