tangled
alpha
login
or
join now
leaflet.pub
/
leaflet
289
fork
atom
a tool for shared writing and social publishing
289
fork
atom
overview
issues
28
pulls
pipelines
don't select if in one text block
awarm.space
1 year ago
8043350c
6ae7f753
+7
1 changed file
expand all
collapse all
unified
split
components
SelectionManager.tsx
+7
components/SelectionManager.tsx
···
494
494
if (!rep) return;
495
495
let [, , selectionWithFoldedChildren] = await getSortedSelection();
496
496
if (!selectionWithFoldedChildren) return;
497
497
+
498
498
+
let el = document.activeElement as HTMLElement;
499
499
+
if (
500
500
+
el.contentEditable === "true" &&
501
501
+
selectionWithFoldedChildren.length <= 1
502
502
+
)
503
503
+
return;
497
504
e.preventDefault();
498
505
await copySelection(rep, selectionWithFoldedChildren);
499
506
}