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