Gets diagram metadata previously set using setDiagramMetadata.
.getDiagramMetadata(/* String */ name)
The name of the metadata item to be retrieved.
editor = new window.__editor(undefined, document.getElementById('editor-node')); /* set editor properties here */ editor.startup(); editor.setDiagramMetadata("name", "value");
In logic elsewhere:
var name = editor.getDiagramMetadata("name");