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

Function simpleSelection

static/editor.md/lib/codemirror/lib/codemirror.js:1985–1987  ·  view source on GitHub ↗
(anchor, head)

Source from the content-addressed store, hash-verified

1983 }
1984
1985 function simpleSelection(anchor, head) {
1986 return new Selection([new Range(anchor, head || anchor)], 0);
1987 }
1988
1989 // Most of the external API clips given positions to make sure they
1990 // 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