How to enable inline editing after drop


I am looking at page flow example and have a quick question. How can I enable the inline editing for the Comment node right after drag and drop?


One way is to add this DiagramEvent listener:

myDiagram.addDiagramListener("ExternalObjectsDropped", function(e) { myDiagram.commandHandler.editTextBlock(); });
Of course if there are multiple nodes dropped at the same time, only one will be edited. And if a node has multiple TextBlocks that are TextBlock.editable, only the first one will be edited.

And if some text edit is ongoing when a drop happens, the drop is cancelled to allow the text edit to be cancelled.