Skip to content

Commit

Permalink
fix: notebook link target bug fix (ajnart#1889)
Browse files Browse the repository at this point in the history
  • Loading branch information
SeDemal authored Feb 9, 2024
1 parent 4933b4f commit cefa0d8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/widgets/notebook/NotebookEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit cefa0d8

Please sign in to comment.