I have developed a custom Confluence theme, which renders a specific header for the page mode view and another specific header for edit (and edit-preview). Before Confluence 5.9, a click on edit called editpage.action, which set the mode to edit in the page decorator page.vmd, based on this variable I could render the different headers within my custom decorators.
Since Confluence 5.9 a click on edit, does not call editpage.action anymore, instead it calls /rest/tinymce/1/content/.json and despite I am in edit mode now, the mode variable in page.vmd is still view, hence my header is also still the one for the view mode. I suppose this is, because the editor is now loaded via XHR.
I really want to use the new editor and its in-place editing feature, but I still need to render different headers for view and edit mode. Does anyone know, how to achieve this in Confluence 5.9 and above?