MCPcopy Create free account
hub / github.com/editablejs/editable / scrollIntoView

Function scrollIntoView

packages/editor/src/plugin/editable.ts:1102–1109  ·  view source on GitHub ↗
(editor: Editor, range = editor.selection)

Source from the content-addressed store, hash-verified

1100 },
1101
1102 scrollIntoView(editor: Editor, range = editor.selection) {
1103 if (!range) return
1104 const domRange = Editable.toDOMRange(editor, range)
1105 const focusEl = domRange.endContainer.parentElement!
1106 scrollIntoView(focusEl, {
1107 scrollMode: 'if-needed',
1108 })
1109 },
1110}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…