Unable to edit Pages after upgrading Confluence due to missing Editor body or Edit button not working
プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。
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.
*Fisheye および Crucible は除く
要約
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.
環境
Confluence 7.7, 7.8, 7.9, 7.10, 7.11 and 7.12.
診断
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:
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
原因
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:
ソリューション
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 too - Scroll 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.