DiagramEditor Events

Events don’t work as expected. Within Diagrams - everything is ok, within DiagramEditor - it does not work. What is wrong with the presented snippet? This is a modification of the official example replacing Diagrams with DiagramEditor

(DHTMLX Snippet Tool)

Question removed - answer found in documentation