From f1fbee9da7354b69848fad8962b478c1af254971 Mon Sep 17 00:00:00 2001 From: Daniel Bakan Date: Tue, 29 Dec 2020 10:12:02 +0100 Subject: [PATCH] Allow Links to use their individual attrs.target (#902) * Allow Links to use their personal target attr * fix irregular whitespace --- packages/tiptap-extensions/src/marks/Link.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/tiptap-extensions/src/marks/Link.js b/packages/tiptap-extensions/src/marks/Link.js index 74a2bcc8a..446ba716d 100644 --- a/packages/tiptap-extensions/src/marks/Link.js +++ b/packages/tiptap-extensions/src/marks/Link.js @@ -38,7 +38,7 @@ export default class Link extends Mark { toDOM: node => ['a', { ...node.attrs, rel: 'noopener noreferrer nofollow', - target: this.options.target, + target: node.attrs.target || this.options.target, }, 0], } }