Skip to content

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

editor: hide link popup in readonly mode on mobile (#3853)

Muhammad Ali248192f4041e
diff --git a/packages/editor/src/toolbar/tools/link.tsx b/packages/editor/src/toolbar/tools/link.tsx
index 42adfd104..039cba17d 100644
--- a/packages/editor/src/toolbar/tools/link.tsx
+++ b/packages/editor/src/toolbar/tools/link.tsx
@@ -34,6 +34,7 @@ export function LinkSettings(props: ToolProps) {
const { editor } = props;
const isBottom = useToolbarLocation() === "bottom";
if (!editor.isActive("link") || !isBottom) return null;
+ if (!editor.isEditable && isBottom) return null;
return (
<MoreTools