Details
-
Bug
-
Resolution: Fixed
-
Low
-
Severity 2 - Major
-
Description
Issue Summary
In the new editor, macros are rendered with output.type=display once save is clicked in edit macro screen even if the page/blog/content is not yet published. The old editor rendered them with output.type=preview until publish is clicked.
This change makes it impossible to make the macro render consistently with the contents of the page it is being rendered on, since my add-on cannot know that it should request the draft version (confluence sends the most recent published version number, which in fact is wrong). Sending the wrong page number is also a bug.
Steps to Reproduce
- Create a dynamic macro
- Pass output.type context parameter in the URL
- Add the dynamic macro using the new editor
- Hit "Save" button in the edit macro dialog
Expected Results
A way to differentiate that the page is still in edit page view.
Actual Results
Hitting "Save" in edit macro view triggers a call to the dynamic macro URL with output.type equal to display. See screen capture http://recordit.co/viZhU5iSux
Workaround
Calling the `AP.navigator.getLocation()` api in the frontend javascript code will allow the app to figure out whether it is in view mode or edit mode: https://developer.atlassian.com/cloud/confluence/jsapi/navigator/
Attachments
Issue Links
- relates to
-
CONFCLOUD-69492 Provide a way for static content macros to know if they are in edit mode or view mode
- Closed
-
DEVHELP-2407 Loading...