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

Confluence Preview and Save pages containing HTML macro does not show the same result

      When using HTML macro (which is disabled by default) and we paste certain HTML and javascript on it the preview screen is showing a different result when the page is saved.

       STEPS TO REPLICATE THE BUG

      1. Install Confluence 5.10.x
      2. Login to Confluence as admin
      3. Navigate to Confluence admin >> Add-ons
      4. Search for Confluence HTML Macros and enable the modules below
        • The html (html-xhtml)
        • The html-include (html-include-xhtml)
      5. Create a page
      6. Include the HTML macro in the page
      7. Paste the HTML source containing JS/CSS

      EXPECTED RESULT
      You will see that the layout is nicely formatted in preview and after saving the page

      ACTUAL RESULT
      Preview shows nicely formatted page but saving the page removed some of the HTML code.

            [CONFSERVER-45297] Confluence Preview and Save pages containing HTML macro does not show the same result

            SET Analytics Bot made changes -
            Support reference count Original: 9 New: 8
            SET Analytics Bot made changes -
            UIS Original: 2 New: 1
            SET Analytics Bot made changes -
            UIS Original: 1 New: 2
            SET Analytics Bot made changes -
            UIS Original: 2 New: 1
            SET Analytics Bot made changes -
            Support reference count Original: 8 New: 9
            SET Analytics Bot made changes -
            UIS Original: 3 New: 2
            SET Analytics Bot made changes -
            UIS Original: 2 New: 3
            SET Analytics Bot made changes -
            UIS Original: 1 New: 2
            SET Analytics Bot made changes -
            UIS Original: 2 New: 1
            Bugfix Automation Bot made changes -
            Support reference count Original: 7 New: 8

              Unassigned Unassigned
              dooi Der Lun
              Affected customers:
              26 This affects my team
              Watchers:
              22 Start watching this issue

                Created:
                Updated: