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.

Signature:

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

Parameters

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

Returns:

ICopyable | null

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