Cannot edit a page with HTML Macro

Still need help?

The Atlassian Community is here for you.

Ask the community

This article only applies to the Atlassian server platform. Learn more about the differences between cloud and server.

Problem

Can't edit pages that contain HTML Macro and JavaScript in Confluence.

Cause

JavaScript code in the HTML Macro is the the root cause of this issue.

Workaround

In order to edit the page JavaScript code needs to be remove from HTML Macro and since it's not possible to edit a page through the Editor we can use either of following resolution:

First Workaround:
  1.  Open Confluence HTML Macros from Confluence Admin > Manage Add-ons > All Add-ons
  2.  Expand this macro.
  3.  Disable both html (html) and html (html-xhtml) modules.
  4.  Refresh your page (Open your page in new tab and refresh it there).
  5.  You will see unknown macro: 'html'.
  6.  Go back to Manage add-ons tab and enable both modules again.
  7.  Go back to the page and click on edit.
  8.  Remove the faulty script and save the page.
Second Workaround:
  1. Get a copy from your page storage format > Storage Format.
  2. Disable Confluence HTML Macros.
  3. Edit the page.
  4. Remove the HTML Macro with faulty scripts form the page.
  5. Save the page.
  6. Since you have got other codes in that HTML macro as well, you can use your storage format's backup to add them back to the page.
Last modified on Feb 26, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.