fix: notebook link target bug fix (#1889)
This commit is contained in:
1 parent
4933b4f60d
commit
cefa0d8fde
1 file changed
+7
@@ -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