diff --git a/src/widgets/notebook/NotebookEditor.tsx b/src/widgets/notebook/NotebookEditor.tsx index a9faf7f2d..f5057e133 100644 --- a/src/widgets/notebook/NotebookEditor.tsx +++ b/src/widgets/notebook/NotebookEditor.tsx @@ -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({