I am using go.js library for diagrams.
I want to implement the copy paste functionality. I have tried builtin functions for copy and paste.
var diag = window.canvas.getDiagramObject();
//for Copy
diag.commandHandler.copySelection();
//for Paste
var targetNode = window.canvas.getribbonTargetNode();
diag.commandHandler.pasteSelection(targetNode);
The problem with these methods are that they only copy selected node
from canvas. But i want to copy also childNodes of that selected node.
Anyone here for help?