Hi Dsoftware,
Soultion 1:
By default, in the diagram, when you double click on the node, text edit box gets appears and you can able to edit the text in the node.
Solution 2:
When you double click on the node, doubleClick event gets triggered. In that event get the node from the selection list and by using the startLabelEdit method we can able to edit the text. Please refer to below code snippet for how to use startLabelEdit method.
|
var diagram = $("#DiagramContent").ejDiagram("instance");
var node = diagram.selectionList[0];
diagram.startLabelEdit(node, node.labels[0]); |
Regards
Aravind Ravi