Skip to content

Commit

Permalink
fix(extension-link): Fix the issue where a link cannot be pasted when…
Browse files Browse the repository at this point in the history
… the editor content is empty and the editor is in a 'select all' state. See details at [issue#5994](ueberdosis#5994)
  • Loading branch information
cool-zero committed Jan 9, 2025
1 parent 9787f8b commit 0bad5bd
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 0bad5bd

Please sign in to comment.