fix: notebook link target bug fix (#1889)

This commit is contained in:
Tagaishi
2024-02-09 22:28:23 +01:00
committed by GitHub
parent 4933b4f60d
commit cefa0d8fde

View File

@@ -95,6 +95,13 @@ export function Editor({ widget }: { widget: INotebookWidget }) {
validate(url) {
return /^https?:\/\//.test(url);
},
}).extend({
addAttributes() {
return {
...this.parent?.(),
target: { default: null }
}
}
}),
StarterKit,
Table.configure({