MCPcopy
hub / github.com/codex-team/editor.js / insertAtEnd

Method insertAtEnd

src/components/modules/blockManager.ts:461–471  ·  view source on GitHub ↗

* Always inserts at the end * * @returns {Block}

()

Source from the content-addressed store, hash-verified

459 * @returns {Block}
460 */
461 public insertAtEnd(): Block {
462 /**
463 * Define new value for current block index
464 */
465 this.currentBlockIndex = this.blocks.length - 1;
466
467 /**
468 * Insert the default typed block
469 */
470 return this.insert();
471 }
472
473 /**
474 * Merge two blocks

Callers 4

setToTheLastBlockMethod · 0.80
navigateNextMethod · 0.80
makeToolboxMethod · 0.80

Calls 1

insertMethod · 0.95

Tested by

no test coverage detected