blockly > WorkspaceSvg > paste
WorkspaceSvg.paste() method
v10. Use
Blockly.clipboard.paste
instead. To be removed in v11.
Pastes the provided block or workspace comment onto the workspace. Does not check whether there is remaining capacity for the object, that should be done before calling this method.
Signature:
paste(state: any | Element | DocumentFragment): ICopyable<ICopyData> | null;
Parameters
Parameter | Type | Description |
---|---|---|
state | any | Element | DocumentFragment | The representation of the thing to paste. |
Returns:
ICopyable<ICopyData> | null
The pasted thing, or null if the paste was not successful.