ta.getData('text');
      // Decide if the clipboard should be pasted, or if we should let GoJS paste
      // This sample pastes from the clipboard if it contains any text at all,
      // Otherwise, it pastes from GoJS
      if (paste.length > 0) {
        // Create a new node out of the text and paste it at the mouse location
        const loc = myDiagram.lastInput.documentPoint;
        const newdata = { text: paste, location: loc };
        myDiagram.model.addNodeData(newdata);
        const newnode = 