Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

editor: always show note internal link button in toolbar

Ammar Ahmedb185338be21c
diff --git a/packages/editor/src/toolbar/tools/link.tsx b/packages/editor/src/toolbar/tools/link.tsx
index 41e54cbcb..0d5e1397a 100644
--- a/packages/editor/src/toolbar/tools/link.tsx
+++ b/packages/editor/src/toolbar/tools/link.tsx
@@ -77,10 +77,10 @@ export function AddInternalLink(props: ToolProps) {
const { editor } = props;
const isActive = editor.isActive(LinkNode.name);
- if (isActive) return null;
return (
<ToolButton
{...props}
+ disabled={isActive}
onClick={async () => {
const link = await editor.storage.createInternalLink?.();
if (!link) return;