How to get the id of an maxGraph cell's content
问题 I've created a graph and am setting cells onto it via drag and drop. However when a drop or click happens I cannot find the clicked cell's html for use. For instance I'm trying to get the ID of the dragged element within the mxEvent.CLICK . graph.addListener(mxEvent.CLICK, function(sender, evt){ var cell = evt.properties.cell; // cell.id is the cell id, not an id of html that's inside of it. if(cell) { var outer = cell.value.outerHTML; // I can see the HTML here encoded } }) UPDATES: So I add