Now that I can acess the contentWindow because the iframe parent is in the same domain I'm having another issue :) .
By doing console.log(guvnor) I get the following information of the guvnorEditorObject:
- afterCancelButtonCallbackFunction: null
- afterSaveAndCloseButtonCallbackFunction: function (){console.log('ssssssssssssssaved')}
- brlCallbackFunction: null
- drlCallbackFunction: null
- getAssetsUUIDs: function (){return c.Lg()}
- getBRL: function (b){this.brlCallbackFunction=b;c.Mg()}
- getDRL: function (b){this.drlCallbackFunction=b;c.Ng()}
- registerAfterCancelButtonCallbackFunction: function (b){this.afterCancelButtonCallbackFunction=b}
- registerAfterSaveAndCloseButtonCallbackFunction: function (b){this.afterSaveAndCloseButtonCallbackFunction=b}
- __proto__: Object
There is a "registerAfterSaveAndCloseButtonCallbackFunction" which receives as argument the function to call when the Save button is pressed. The problem is that it isn't calling the function.
Things I've noticed:
In the Stand Alone Editor there isn't a Save and Close button but a Save All Changes button...as such it makes more sence to use the "registerAfterSaveAllButtonCallbackFunction" which you previously refered. Bu the guvnorEditorObject doesn't have such property.
What can I do in order to refresh the iframe of the Stand Alone editor after saving?