MCPcopy Create free account
hub / github.com/TruthHun/BookStack / simpleSelection

Function simpleSelection

static/mergely/lib/codemirror.js:2081–2083  ·  view source on GitHub ↗
(anchor, head)

Source from the content-addressed store, hash-verified

2079 }
2080
2081 function simpleSelection(anchor, head) {
2082 return new Selection([new Range(anchor, head || anchor)], 0);
2083 }
2084
2085 // Most of the external API clips given positions to make sure they
2086 // actually exist within the document.

Callers 4

codemirror.jsFile · 0.70
setSimpleSelectionFunction · 0.70
loadFileFunction · 0.70
onDropFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected