Unable to edit Pages after upgrading Confluence due to missing Editor body or Edit button not working
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
After a Confluence upgrade, users are unable to edit Pages, Blog posts or add Comments in Confluence due to missing Editor Body or due to Edit button not working.
The actual contents are still visible in Display mode.
Environment
Confluence 7.7, 7.8, 7.9, 7.10, 7.11 and 7.12.
Diagnosis
Create a new (or Edit an existing) Page / Blog Post.
The Page title and Editor tools are still available, and new Pages can be created only with a Title, but the Editor body does not load.
Example - Test page in Display mode:

✔️ Expected - content is editable via the Editor's body:

❌ Actual - the Editor body does not load:

PS: If clicking the Edit button doesn't work, we can force a Page edit in two ways:
Right-click the Edit button and select Open Link in New Tab, or
Edit the URL and navigate to /pages/editpage.action?pageId=123456 (replace 123456 with an actual Page ID).
⚠️ An error will also be displayed under the Developer Tools console:
1
2
3
4
5
batch.js?locale=en-US Failed to run init function: Cannot read property 'activeEditor' of undefined ƒ (){function b(a){a=a.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");a=(new RegExp("[\\?\x26]"+a+"\x3d([^\x26#]*)")).exec(location.search);return null==a?"":decodeURIComponent(a[1].replace(/\+/g," "))}va… TypeError: Cannot read property 'activeEditor' of undefined
at Object.getEditor (batch.js?gatekeeper-ui-v2=true&healthcheck-resources=true&hostenabled=true&locale=en-US&user-logged-in=true:1934)
at batch.js?locale=en-US:29
at batch.js?locale=en-US:2336 TypeError: Cannot read property 'activeEditor' of undefined
at Object.getEditor

Cause
The frontend.editor.v4.disable Dark Feature is currently enabled:

This feature was used to fallback the Confluence Editor (based on TinyMCE) from v4 into v3, which may not be available in most recent Confluence versions (from 7.7.x onwards):
To be deprecated in future Confluence versions:
Solution
Remove the Dark Feature:
Navigate to <Confluence-base-URL>/admin/darkfeatures.action
ℹ️ In some cases dark features can be added in
<Install-Dir>
/confluence/WEB-INF/classes/darkfeature.properties
as well, so check this file tooScroll down to Site Dark Features
Locate frontend.editor.v4.disable and click on Remove
There is no need to restart Confluence after the change is done.
The Editor's body should come up while editing a Page, Blog post or Comment now.
Was this helpful?