Blockly. clipboard
Blockly's internal clipboard for managing copy-paste.
Methods
copy
copy(toCopy)
Copy a block or workspace comment onto the local clipboard.
Parameter |
|
---|---|
toCopy |
Block or Workspace Comment to be copied. Value must not be null. |
duplicate
duplicate(toDuplicate) returns (Blockly.ICopyable or null)
Duplicate this block and its children, or a workspace comment.
Parameter |
|
---|---|
toDuplicate |
Block or Workspace Comment to be duplicated. Value must not be null. |
- Returns
-
(non-null Blockly.ICopyable or null)
The block or workspace comment that was duplicated, or null if the duplication failed.
paste
paste() returns (Blockly.ICopyable or null)
Paste a block or workspace comment on to the main workspace.
- Returns
-
(non-null Blockly.ICopyable or null)
The pasted thing if the paste was successful, null otherwise.