Skip to content

Commit

Permalink
editor: hide link popup in readonly mode on mobile (streetwriters#3853)
Browse files Browse the repository at this point in the history
  • Loading branch information
alihamuh authored Nov 25, 2023
1 parent e56b766 commit 248192f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/editor/src/toolbar/tools/link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 248192f

Please sign in to comment.