Stay organized with collections Save and categorize content based on your preferences.

blockly > WorkspaceSvg > paste

WorkspaceSvg.paste() method

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.


paste(state: any | Element | DocumentFragment): ICopyable | null;


Parameter Type Description
state any | Element | DocumentFragment The representation of the thing to paste.


ICopyable | null

The pasted thing, or null if the paste was not successful.