Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-31820

Enable Confluence body macros to accept the INLINE atlassian-macro-output-type.

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Won't Do
    • None
    • None
    • 1
    • We collect Confluence feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    Description

      NOTE: This suggestion is for Confluence Server. Using Confluence Cloud? See the corresponding suggestion.

      There was a change of behaviour from Confluence 4.3.7 to 5.3.4, in Confluence 4.3.7 our body macros used to accept the INLINE output type, however due to the CSS changes that option is no longer available.

      Find below the instructions on how reproduce this behaviour in our latest version, if you follow these same steps in 4.3.7 you will notice that the macro will be INLINE with the text.
      In my example I used a third party macro, however that behaviour will be the same with any of our bundled body macro.

      Steps to reproduce:

      1. Start a Confluence 5.3.4.
      2. Go to UPM and install "Confluence Source Editor".
      3. Download Reporting Plugin, can be either from marketplace or UPM.
        You will also need to get a free license for reporting plugin.
      4. Create a page.
      5. Use source editor and add below code:
        <ac:macro ac:name="report-link">
        <ac:parameter ac:name="atlassian-macro-output-type">INLINE</ac:parameter>
        <ac:default-parameter>content:url</ac:default-parameter>
        <ac:rich-text-body>
        <ac:emoticon ac:name="green-star"/>
        </ac:rich-text-body>
        </ac:macro> and some text here
        
      6. Once you hit save Confluence will change above code as following:
        <ac:structured-macro ac:name="report-link">
        <ac:parameter ac:name="atlassian-macro-output-type">INLINE</ac:parameter>
        <ac:parameter ac:name="">content:url</ac:parameter>
        <ac:rich-text-body>
        <ac:emoticon ac:name="green-star"/>
        </ac:rich-text-body>
        </ac:structured-macro>
        <p>and some text here</p>
        
      7. In below image you can see that "Some text" will be under the icon instead at the side:

      If you try to use the same code of step 5 in the source editor of Confluence 4.3.7, the code will not be changed and the image will be displayed as this:

      Workaround:

      If you edit the page using the UI you can put the "Some text" inside the Report Link block, however that text will be turned into a link:

      1. Editing the page:
      2. After saving:

      ps.: I've moved this case from a bug ticket to a feature request on a customers behalf.

      Attachments

        1. img1.PNG
          7 kB
          Deividi Luvison
        2. img2.PNG
          5 kB
          Deividi Luvison
        3. img4.PNG
          17 kB
          Deividi Luvison
        4. img5.PNG
          11 kB
          Deividi Luvison

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dluvison Deividi Luvison (Inactive)
              Votes:
              9 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: