mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-15 02:59:01 +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', {
|
toDOM: node => ['a', {
|
||||||
...node.attrs,
|
...node.attrs,
|
||||||
rel: 'noopener noreferrer nofollow',
|
rel: 'noopener noreferrer nofollow',
|
||||||
target: this.options.target,
|
target: node.attrs.target || this.options.target,
|
||||||
}, 0],
|
}, 0],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user