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:
@@ -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],
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user