Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-79774

Image caption not visible for images placed inside a dynamic content macro

XMLWordPrintable

      Issue Summary

      This is reproducible on Data Center: (no)

      Placing image with caption in Dynamic content macro won't show the caption in page view mode. Only visible in page edit mode.

      Steps to Reproduce

      1. Add a dynamic content macro in a page
      2. inside the macro add an image
      3. add a caption in the image
      4. publish the page

      Expected Results

      The image caption should be visible in page view mode.

      Actual Results

      Image caption isn't visible in page view mode; if we check the storage format of the page we can see <ac:caption> in the content. But, it's not displayed in page view UI.

      <ac:structured-macro ac:name="macro-panel" ac:schema-version="1" data-layout="default" ac:local-id="...." ac:macro-id="...."><ac:parameter ac:name="params"></ac:parameter><ac:rich-text-body>
      <p />
      <ac:image ac:align="center" ac:layout="center" ac:original-height="410" ac:original-width="410" ac:custom-width="true" ac:alt="image.png" ac:width="410">
      <ri:attachment ri:filename="image.png" ri:version-at-save="1" />
      <ac:caption><p>Caption Text</p></ac:caption>
      </ac:image>
      <p /></ac:rich-text-body></ac:structured-macro>
      

      Workaround

      Currently there is no known workaround for this behaviour. A workaround will be added here when available

              Unassigned Unassigned
              2ed764d1efd7 Nashid Farhad
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: