MCPcopy Index your code
hub / github.com/codex-team/editor.js / push

Method push

src/components/blocks.ts:117–120  ·  view source on GitHub ↗

* Push new Block to the blocks array and append it to working area * * @param {Block} block - Block to add

(block: Block)

Source from the content-addressed store, hash-verified

115 * @param {Block} block - Block to add
116 */
117 public push(block: Block): void {
118 this.blocks.push(block);
119 this.insertToDOM(block);
120 }
121
122 /**
123 * Swaps blocks with indexes first and second

Callers 8

insertMethod · 0.95
copy-paste.cy.tsFile · 0.45
commands.tsFile · 0.45
ModuleClass · 0.45
insertManyMethod · 0.45
_logFunction · 0.45
onFlipMethod · 0.45
isEmptyMethod · 0.45

Calls 1

insertToDOMMethod · 0.95

Tested by

no test coverage detected