We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b2ba7d commit c15a85dCopy full SHA for c15a85d
1 file changed
src/plugins/link-dialog/index.ts
@@ -248,7 +248,7 @@ export const linkDialogState$ = Cell<InactiveLinkDialog | PreviewLinkDialog | Ed
248
map(([[selection], activeEditor, _, readOnly]) => {
249
if ($isRangeSelection(selection) && activeEditor && !readOnly) {
250
const node = getLinkNodeInSelection(selection)
251
-
+ if (!selection.isCollapsed()) return { type: 'inactive' } as InactiveLinkDialog
252
if (node) {
253
const rect = getSelectionRectangle(activeEditor)
254
0 commit comments