fix: notebook link target bug fix (#1889)
This commit is contained in:
@@ -95,6 +95,13 @@ export function Editor({ widget }: { widget: INotebookWidget }) {
|
|||||||
validate(url) {
|
validate(url) {
|
||||||
return /^https?:\/\//.test(url);
|
return /^https?:\/\//.test(url);
|
||||||
},
|
},
|
||||||
|
}).extend({
|
||||||
|
addAttributes() {
|
||||||
|
return {
|
||||||
|
...this.parent?.(),
|
||||||
|
target: { default: null }
|
||||||
|
}
|
||||||
|
}
|
||||||
}),
|
}),
|
||||||
StarterKit,
|
StarterKit,
|
||||||
Table.configure({
|
Table.configure({
|
||||||
|
|||||||
Reference in New Issue
Block a user