Skip to content

Commit

Permalink
fix(extension-link): fixes #5994 where link cannot be pasted in some …
Browse files Browse the repository at this point in the history
…scenarios (#6010)

Co-authored-by: cool-zero <[email protected]>
  • Loading branch information
guanriyue and cool-zero authored Jan 9, 2025
1 parent 9787f8b commit 0e91b1c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/extension-link/src/helpers/pasteHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,9 @@ export function pasteHandler(options: PasteHandlerOptions): Plugin {
return false
}

options.editor.commands.setMark(options.type, {
return options.editor.commands.setMark(options.type, {
href: link.href,
})

return true
},
},
})
Expand Down

0 comments on commit 0e91b1c

Please sign in to comment.