Skip to content

Commit

Permalink
fix(link): allow to unset target attribute (#3425)
Browse files Browse the repository at this point in the history
Resolves #3276.
  • Loading branch information
dargmuesli authored Nov 25, 2022
1 parent ef8a1a2 commit 1c3568d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/extension-link/src/link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ declare module '@tiptap/core' {
/**
* Set a link mark
*/
setLink: (attributes: { href: string, target?: string }) => ReturnType,
setLink: (attributes: { href: string, target?: string | null }) => ReturnType,
/**
* Toggle a link mark
*/
toggleLink: (attributes: { href: string, target?: string }) => ReturnType,
toggleLink: (attributes: { href: string, target?: string | null }) => ReturnType,
/**
* Unset a link mark
*/
Expand Down

0 comments on commit 1c3568d

Please sign in to comment.