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

Function setSimpleSelection

static/editor.md/lib/codemirror/lib/codemirror.js:2060–2062  ·  view source on GitHub ↗
(doc, anchor, head, options)

Source from the content-addressed store, hash-verified

2058
2059 // Reset the selection to a single range.
2060 function setSimpleSelection(doc, anchor, head, options) {
2061 setSelection(doc, simpleSelection(anchor, head), options);
2062 }
2063
2064 // Give beforeSelectionChange handlers a change to influence a
2065 // selection update.

Callers 1

codemirror.jsFile · 0.70

Calls 2

setSelectionFunction · 0.70
simpleSelectionFunction · 0.70

Tested by

no test coverage detected