Is there event listener for xml changed?

Hello, i am wondering if there is a way to listen to xml change ?
What i want to make is autosave function when xml change

Thank you

1 Like

The commandStack.changed event should be your friend.

eventBus.on('commandStack.changed', function(...) {
  // save XML
});
5 Likes