Copying pages with status Macro losing format when pasting in other applications

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Low
    • None
    • Affects Version/s: 7.13.4
    • Component/s: Content - Page
    • None
    • 4
    • Severity 3 - Minor
    • 1

      Problem

      When copying a page that has status Macro on it to another application like Word, Mail, Outlook, etc, the copied page will lose its format.

      Environment

      .

      Steps to Reproduce

      Create a page and add the StatusMacro to it.

      Format the Status Macro items with different colors

      Copy the page and paste it to an application that supports Rich Text/HTML

      Expected Results

      The Page is copied and the format is kept, In Confluence 7.4, when copying it, it shows as below:

      Actual Results

      The page is copied but the format/colors are not coming, as shown below:

      Workaround

      A site-wide workaround can be applied by configuring a custom global CSS stylesheet.

      Simply add the following lines of CSS code to the existing stylesheet under General configuration > Look and feel > Stylesheet > Edit.

      Administrator privileges are required.

      /* Workaround for CONFSERVER-78153 */
      #content .status-macro.aui-lozenge {
          background-color: #42526e;
          color: #fff;
      }
      
      #content .status-macro.aui-lozenge-error {
          background-color: #bf2600;
          color: #fff;
      }
      
      #content .status-macro.aui-lozenge-moved {
          background-color: #ff991f;
          color: #172b4d;
      }
      
      #content .status-macro.aui-lozenge-success {
          background-color: #00875a;
          color: #fff;
      }
      
      #content .status-macro.aui-lozenge-current {
          background-color: #0052cc;
          color: #fff;
      }
      
      #content .status-macro.aui-lozenge.aui-lozenge-subtle {
          background-color: #dfe1e6;
          color: #42526e;
      }
      
      #content .status-macro.aui-lozenge-error.aui-lozenge-subtle {
          background-color: #ffebe6;
          color: #bf2600;
      }
      
      #content .status-macro.aui-lozenge-moved.aui-lozenge-subtle {
          background-color: #fff0b3;
          color: #172b4d;
      }
      
      #content .status-macro.aui-lozenge-success.aui-lozenge-subtle {
          background-color: #e3fcef;
          color: #064;
      }
      
      #content .status-macro.aui-lozenge-current.aui-lozenge-subtle {
          background-color: #deebff;
          color: #0747a6;
      }
      

       

      Notes

      I noticed that on Confluence 7.4 -> The CSS formatting for the pills has the color directly assigned to it:

      However, when we look at Confluence 7.13, the CSS formatting is directed to a variable instead of the current color:

      Maybe this is something paying a role in how the copy/paste is made?

        1. image-2022-03-21-19-06-49-840.png
          58 kB
          Winderson Souza
        2. image-2022-03-21-19-07-25-235.png
          51 kB
          Winderson Souza
        3. image-2022-03-21-19-08-53-250.png
          49 kB
          Winderson Souza
        4. image-2022-03-21-19-12-46-385.png
          291 kB
          Winderson Souza
        5. image-2022-03-21-19-13-06-846.png
          333 kB
          Winderson Souza

              Assignee:
              Unassigned
              Reporter:
              Winderson Souza
              Votes:
              13 Vote for this issue
              Watchers:
              11 Start watching this issue

                Created:
                Updated: