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

Function findKey

packages/editor/src/plugin/editable.ts:274–283  ·  view source on GitHub ↗

* Find a key for a Editor node.

(editor: Editor, node: Node)

Source from the content-addressed store, hash-verified

272 */
273
274 findKey(editor: Editor, node: Node): Key {
275 let key = NODE_TO_KEY.get(node)
276
277 if (!key) {
278 key = new Key()
279 NODE_TO_KEY.set(node, key)
280 }
281
282 return key
283 },
284
285 /**
286 * Find the path of Editor node.

Callers

nothing calls this directly

Calls 1

getMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…