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

Function Selection

static/editor.md/lib/codemirror/lib/codemirror.js:1917–1920  ·  view source on GitHub ↗
(ranges, primIndex)

Source from the content-addressed store, hash-verified

1915 // which one is the primary selection (the one that's scrolled into
1916 // view, that getCursor returns, etc).
1917 function Selection(ranges, primIndex) {
1918 this.ranges = ranges;
1919 this.primIndex = primIndex;
1920 }
1921
1922 Selection.prototype = {
1923 primary: function() { return this.ranges[this.primIndex]; },

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected