Function: getCurrentBlock()
function getCurrentBlock(): Block | null;
Defined in: packages/blockly/core/contextmenu.ts:49
Gets the block the context menu is currently attached to. It is not recommended that you use this function; instead, use the scope object passed to the context menu callback.
Returns
Block | null
The block the context menu is attached to.