How to import XML to modeler canvas from inside custom camunda plugin?

Hey,

I’m trying to access the modeler from within a plugin to allow the importing of a model by XML.
I’ve read through some documentation but I couldn’t find anything of much help.

Explored different triggerAction events but I couldnt find any that suited my needs

I’m using react to build the plugin if that is of any help.