Do you have any suggestions on how i could duplicate a node?
This is what i tried
duplicateNode() {
const { parent } = this.selectedNode;
this.editor.selectNode(parent);
parent.children.push({ ...this.selectNode });
},
But it doesn't work. Any idea what i could do?
Do you have any suggestions on how i could duplicate a node?
This is what i tried
But it doesn't work. Any idea what i could do?