react-drawio
react-drawio copied to clipboard
Export Plain XML on Save
We are using this library to be able to edit save drawio applications inside our application, and we need to store the actual XML of the diagram file in the database as we are also using the diagram in upstream tasks. However, the export event only allows xmlpng or xmlsvg to be exported.
For our project also we need the plain xml
Hi both,
If you have a look at the console when opening https://marcveens.github.io/react-drawio/?path=/story/components-drawioembed--export-data-svg for example, you see that the onExport callback also returns the XML already. Does that help?