Skip to content

Commit

Permalink
fix: Remove handlePaste escape when clipboard holds multiple types (#…
Browse files Browse the repository at this point in the history
…434)

fix: Remove handlePaste escape when clipboard holds multiple types
  • Loading branch information
frankieyan committed Sep 8, 2023
1 parent 638e184 commit 4395051
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/extensions/rich-text/rich-text-image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,11 +185,6 @@ const RichTextImage = Image.extend<RichTextImageOptions>({
return false
}

// Do not handle the event if there are multiple clipboard types
if ((event.clipboardData?.types || []).length > 1) {
return false
}

const pastedFiles = Array.from(event.clipboardData?.files || [])

// Do not handle the event if no files were pasted
Expand Down

0 comments on commit 4395051

Please sign in to comment.