Provide Macro preview for Remote Macros that have a body

XMLWordPrintable

      If your remote macro (both dynamic and static macros will need this) has a body then macro previews in edit mode will not work as expected.

      If you are on a new page (or editing a page) and you insert (or edit) a macro, the preview window will call out to the addon to get the preview render. This may call back in to Confluence to get the body which wont be saved yet.

      If you are on a new page the preview will error to the user saying that there is no macro body for the given hash and page id.

      If you are editing a current page, the preview will display as if the body was not edited (the old body will be loaded).

      This is because:

      • the state of an edit is only tracked in the user's browser and isn't available on the server (and therefore not available to the addon)
      • the page id, and macro hash is calculated by hashing the storage format which isn't saved yet
      • the addon receives the page id and hash, and no reference to the current changes

        1. confluence-macro-preview-editor-bug.mov
          59.62 MB
          Robert Massaioli (Atlassian)

              Assignee:
              Unassigned
              Reporter:
              m@ (Inactive)
              Votes:
              3 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: