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

Function getSelectionInformation

code/composition/public/app.js:6649–6655  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6647}
6648
6649function getSelectionInformation() {
6650 var focusedElem = getActiveElement();
6651 return {
6652 focusedElem: focusedElem,
6653 selectionRange: hasSelectionCapabilities(focusedElem) ? getSelection$1(focusedElem) : null
6654 };
6655}
6656
6657/**
6658 * @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