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

thanks!! i am getting the change events now. but how can i check what has been chanegd? added new attribute? editted existing attribute? no such info is available

Please do not necrobump old topics. Instead link to this thread from new topic.