Dynamic content macros exhibit inconsistent behaviours w.r.t. the persistence and retrieval of macro bodies.
- Create an app containing three dynamic content macros - one each corresponding to different values macroBody: none, plain-text and rich-text.
- For the dynamic content macros, implement a custom editor that saves macro body data.
- Insert the macros into the legacy and fabric editors.
- Observe the way the editor displays the macro in preview mode.
The legacy and fabric editors exhibit consistent behaviour, albeit the fabric editor trying to provide an experience that is closer to WYSIWYG.
|bodyType||Legacy Editor||Fabric Editor|
|none||No body visible in preview mode.||The macro is displayed in preview mode (output.type = preview). Macro body data saved using AP.confluence.saveMacro(macroParams, macroBody) is ignored. AP.confluence.getMacroBody always returns an empty string.|
|rich-text||Preview mode displays the macro body data in rich text form. Tags such as <p> are not visible.||The macro is not displayed in preview mode. It displays a container, however, the container is always empty. Macro body data saved using AP.confluence.saveMacro(macroParams, macroBody) is converted to "<p />".|