MCPcopy
hub / github.com/basecamp/trix / selectNode

Function selectNode

src/test/test_helpers/selection_helpers.js:121–125  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

119}
120
121export const selectNode = async (node) => {
122 const selection = rangy.getSelection()
123 selection.selectAllChildren(node)
124 selectionChangeObserver.update()
125}
126
127export const createDOMRangeFromPoint = function (px, py) {
128 if (document.caretPositionFromPoint) {

Callers 5

startCompositionFunction · 0.90
updateCompositionFunction · 0.90
endCompositionFunction · 0.90

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…