From cefa0d8fdec2451773bce03ed3a139ec317b578e Mon Sep 17 00:00:00 2001 From: Tagaishi Date: Fri, 9 Feb 2024 22:28:23 +0100 Subject: [PATCH] fix: notebook link target bug fix (#1889) --- src/widgets/notebook/NotebookEditor.tsx | 7 +++++++ 1 file changed, 7 insertions(+) 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({