Hi Hamid,
We have created a mind map sample in which we have disabled the copy of root node using the command manager. Please refer to the code example and JSPlayground link.
Code example: $("#diagram").ejDiagram({
commandManager: {
commands: {
//Command name
"copy": {
//Command handler
canExecute: copying,
}
}
},
});
function copying(args) {
var node = args.model.selectedItems.children[0];
if (node.branch == "root") {
return false;
}
else
{
return true;
}
}
JSPlayground link:https://jsplayground.syncfusion.com/n0pk35ee
Regards,
Shyam G