mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-14 18:49:02 +08:00
Allow Links to use their individual attrs.target (#902)
* Allow Links to use their personal target attr * fix irregular whitespace
This commit is contained in:
parent
b8f4dcde72
commit
f1fbee9da7
@ -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],
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user