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

Method getCurrentBlockIndex

src/components/modules/api/blocks.ts:58–60  ·  view source on GitHub ↗

* Returns current block index * * @returns {number}

()

Source from the content-addressed store, hash-verified

56 * @returns {number}
57 */
58 public getCurrentBlockIndex(): number {
59 return this.Editor.BlockManager.currentBlockIndex;
60 }
61
62 /**
63 * Returns the index of Block by id;

Callers 1

methodsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected