marcveens / react-drawio

React component for integrating the Diagrams (draw.io) embed iframe
MIT License
47 stars 9 forks source link

Programmatically call the save event #23

Closed AngusParsonson closed 6 months ago

AngusParsonson commented 6 months ago

Is it possible to programmatically trigger the save event?

marcveens commented 6 months ago

You can programmatically trigger the export event, as shown at https://github.com/marcveens/react-drawio?tab=readme-ov-file#export-diagram-programmatically. That's actually the only related action provided by drawio, but that should do, right?

AngusParsonson commented 6 months ago

Hi @marcveens, it wasn't quite what I needed but have managed to make it work. Cheers.