Skip to main content

paste()

Description

Creates new elements identical to the elements passed by the "copy()" method

note

The paste() method works only if the Diagram Editor is initialized in the default mode.

Usage

paste(): void;

Example

const editor = new dhx.DiagramEditor("editor_container", { 
type: "default" // only default
});
// ...
editor.model.copy(); // copies the selected items
editor.model.paste() // pastes new items

Change log: Added in v6.0