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

Function getEditableChild

packages/editor/src/utils/dom.ts:103–110  ·  view source on GitHub ↗
(
  parent: DOMElement,
  index: number,
  direction: 'forward' | 'backward',
)

Source from the content-addressed store, hash-verified

101 */
102
103export const getEditableChild = (
104 parent: DOMElement,
105 index: number,
106 direction: 'forward' | 'backward',
107): DOMNode => {
108 const [child] = getEditableChildAndIndex(parent, index, direction)
109 return child
110}
111
112export const isEditableDOMElement = (value: any): boolean => {
113 if (isDOMHTMLElement(value)) {

Callers 1

normalizeDOMPointFunction · 0.85

Calls 1

getEditableChildAndIndexFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…