Function: workspaceToDom()
function workspaceToDom(workspace, skipId?): Element;
Defined in: packages/blockly/core/xml.ts:41
Encode a block tree as XML.
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
workspace | Workspace | undefined | The workspace containing blocks. |
skipId | boolean | false | True if the encoder should skip the block IDs. False by default. |
Returns
Element
XML DOM element.