Namespace: clipboard

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

Methods

copy

package   static

copy(toCopy)

Copy a block or workspace comment onto the local clipboard.

Parameter

toCopy

Blockly.ICopyable

Block or Workspace Comment to be copied.

Value must not be null.

duplicate

package   static

duplicate(toDuplicate) returns (Blockly.ICopyable or null)

Duplicate this block and its children, or a workspace comment.

Parameter

toDuplicate

Blockly.ICopyable

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

package   static

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.