Skip to content

Commit

Permalink
Fix: re-enable link dialog preview
Browse files Browse the repository at this point in the history
Fixes #421
  • Loading branch information
petyosi committed Apr 16, 2024
1 parent c533de7 commit 89d1f81
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/plugins/link-dialog/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,8 @@ export const linkDialogState$ = Cell<InactiveLinkDialog | PreviewLinkDialog | Ed
r.pipe(
r.combine(currentSelection$, onWindowChange$),
withLatestFrom(activeEditor$, linkDialogState$, readOnly$),
map(([[selection], activeEditor, readOnly]) => {
map(([[selection], activeEditor, _, readOnly]) => {
console.log({ readOnly })
if ($isRangeSelection(selection) && activeEditor && !readOnly) {
const node = getLinkNodeInSelection(selection)

Expand Down

0 comments on commit 89d1f81

Please sign in to comment.