0

I am trying to implement the mxgraph. For non html value in the node or edge it's working fine but whereas for html value it's throwing the error cell.getParent is not a function.

Even I set the html options as graph.setHtmlLabels(true); graph.htmlLabels = true;

Below is the image with html value for node

enter image description here

Below is the image without html value node

enter image description here

Error at the browser console

enter image description here

van neilsen
  • 547
  • 8
  • 21
Harish Nayak
  • 348
  • 3
  • 18

1 Answers1

0

Try change:

codec.decode(elm,model) 

To

codec.decodeCell(elm)
4b0
  • 21,981
  • 30
  • 95
  • 142
sui suo
  • 9
  • 1
  • 4