Apply changes API
Hi 👋
Thanks for a lot providing this API, I was able to automate everything I needed to apart from this last thing :-) I'm missing the ability to apply the changes I made on some instantiated templates. The equivalent of clicking the Apply All button:

Is there an API for that, which I have simply missed? Or is it not possible via the editor API yet?
I don't believe Revert All, Revert and Apply All are part of the public API. There would be private API in the Editor UI code that you could call in the meantime if it's needed for you
If you open source maps for the Editor page, look for the file templates-entity-inspector.js and you can see what functions are bound to those buttons.
Thanks! I figured out that I can just call:
window.editor.call('templates:apply', entity);