MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / getSelectionInformation

Function getSelectionInformation

code/new-context-api/public/app.js:5872–5878  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5870}
5871
5872function getSelectionInformation() {
5873 var focusedElem = getActiveElement();
5874 return {
5875 focusedElem: focusedElem,
5876 selectionRange: hasSelectionCapabilities(focusedElem) ? getSelection$1(focusedElem) : null
5877 };
5878}
5879
5880/**
5881 * @restoreSelection: If any selection information was potentially lost,

Callers 1

app.jsFile · 0.70

Calls 3

getActiveElementFunction · 0.70
hasSelectionCapabilitiesFunction · 0.70
getSelection$1Function · 0.70

Tested by

no test coverage detected