From 1c3568dcd978a7eb784cde69d4e9962f612cbe35 Mon Sep 17 00:00:00 2001 From: Jonas Thelemann Date: Fri, 25 Nov 2022 16:48:28 +0100 Subject: [PATCH] fix(link): allow to unset target attribute (#3425) Resolves #3276. --- packages/extension-link/src/link.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/extension-link/src/link.ts b/packages/extension-link/src/link.ts index a2dfdd0ecd1..1eacfc7f105 100644 --- a/packages/extension-link/src/link.ts +++ b/packages/extension-link/src/link.ts @@ -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 */