Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/codex-team/editor.js
/ getBlocksCount
Method
getBlocksCount
src/components/modules/api/blocks.ts:49–51 ·
view source on GitHub ↗
* Returns Blocks count * * @returns {number}
()
Source
from the content-addressed store, hash-verified
47
* @returns {number}
48
*/
49
public getBlocksCount(): number {
50
return
this.Editor.BlockManager.blocks.length;
51
}
52
53
/**
54
* Returns current block index
Callers
1
methods
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected