I’d like to be able to get the current edit mode contents of the current page during my cloud dynamic macro editing session to find copied/pasted versions of the same macro on the page that were inserted within the same edit session.
The REST APIs can return the edit representation before the current edit session, but I don’t see a way to get the live current edit session contents.
The usage case here is that user edits a new page, adds one of our dynamic macros. They then, without updating and saving the page, copy and paste the macro instance on the new page and then open our custom editor for one of the instances.
At save time for the instance, I’d like to be able to detect that there are copies (since they may share attachment data) and give the user some messaging about changes to this instance affecting the others.
I can do this if the other copied instances were already on the page before going into the edit session, but not on the live edit session.