MCPcopy Create free account
hub / github.com/Easy-Editor/EasyEditor / insertNode

Method insertNode

packages/core/src/document/document.ts:291–293  ·  view source on GitHub ↗
(parent: Node, thing: Node | NodeSchema, at?: number, copy?: boolean)

Source from the content-addressed store, hash-verified

289 }
290
291 insertNode(parent: Node, thing: Node | NodeSchema, at?: number, copy?: boolean) {
292 return insertChild(parent, thing, at, copy)
293 }
294
295 /**
296 * insert multiple nodes

Callers 5

onClickFunction · 0.80
executeOperationFunction · 0.80
onClickFunction · 0.80
handleCanvasDropFunction · 0.80
handleClickFunction · 0.80

Calls 1

insertChildFunction · 0.90

Tested by

no test coverage detected