@User in this case, if my Draw.io diagram is in source form, I need to export it. Instead of tying Dendron directly into that I was thinking of raising an event with the ref in, letting another extension handle it. It might be more appropriate to have those extensions register a handler function that can return a promise, though?