diff --git a/components/Blocks/TextBlock/mountProsemirror.ts b/components/Blocks/TextBlock/mountProsemirror.ts index 6a5af3c9..f7cc0171 100644 --- a/components/Blocks/TextBlock/mountProsemirror.ts +++ b/components/Blocks/TextBlock/mountProsemirror.ts @@ -153,7 +153,7 @@ export function useMountProsemirror({ nodeAt1?.marks.find((f) => f.type === schema.marks.link) || nodeAt2?.marks.find((f) => f.type === schema.marks.link); if (linkMark) { - window.open(linkMark.attrs.href, "_blank"); + window.open(linkMark.attrs.href, "_blank", "noreferrer"); return; } }, diff --git a/components/Blocks/TextBlock/schema.ts b/components/Blocks/TextBlock/schema.ts index 88b2ed91..29b39dee 100644 --- a/components/Blocks/TextBlock/schema.ts +++ b/components/Blocks/TextBlock/schema.ts @@ -105,7 +105,7 @@ let baseSchema = { ], toDOM(node) { let { href } = node.attrs; - return ["a", { href, target: "_blank" }, 0]; + return ["a", { href, target: "_blank", referrerpolicy: "no-referrer" }, 0]; }, } as MarkSpec, },