blockly > getMainWorkspace

getMainWorkspace variable

Returns the main workspace. Returns the last used main workspace (based on focus). Try not to use this function, particularly if there are multiple Blockly instances on a page.

Signature:

getMainWorkspace: typeof common.getMainWorkspace