English | 简体中文
Fixes the "page jumps to top when clicking empty space" bug in Confluence's classic editor on Chromium browsers.
- Automatically activates on Confluence edit pages, preventing the jump-to-top behavior when clicking margins
- Toolbar icon offers a three-state toggle (Auto / Force on / Force off); an
ONbadge on the icon means the current page is locked
Does nothing outside edit pages; never injects on non-*confluence* domains.
This bug exists in Confluence Server / Data Center using the classic TinyMCE editor (the one embedded in <iframe id="wysiwygTextarea_ifr">), on Chromium-based browsers only.
- Affected: Confluence Server / DC versions before 9.2.11 and before 10.1.0 — Atlassian fixed it upstream in those releases (CONFSERVER-100547)
- Not affected: Confluence Cloud (uses the new Atlaskit editor), Confluence DC 9.2.11+ / 10.1.0+, or any browser that isn't Chromium (Firefox / Safari are fine without this extension)
If your instance is already on a fixed version, you don't need this extension.
The extension only acts when both conditions are true:
- The hostname contains the substring
confluence(case-insensitive). Examples that match:confluence.company.com,pdconfluence.example.com,wiki.confluence.internal. Examples that don't:wiki.company.com,kb.team.io. - The URL looks like an edit page and an editor DOM node is present on the page.
The URL is considered an edit page if it matches any of:
resumedraft.action(resuming a draft)?action=editor&action=edit(classic edit URL)/edit-v2/(newer edit route)/pages/editpage.action/pages/createpage.action
The editor DOM check looks for any of: iframe#wysiwygTextarea_ifr, iframe.tox-edit-area__iframe, .ProseMirror, [contenteditable='true'].
If your Confluence host doesn't contain the word confluence (e.g. a custom wiki.company.com), auto-mode won't trigger — use Force on from the toolbar popup.
- Chrome 88+
- Edge 88+
- Other Chromium-based browsers (Brave / Arc / Vivaldi / Opera, etc.)
Firefox and Safari don't have this bug — no need to install.
git clone https://github.com/ydbdyds/lock-confluence.git- Open
chrome://extensions(oredge://extensionson Edge) - Enable "Developer mode" in the top-right corner
- Click "Load unpacked" and select the cloned directory
Open a Confluence edit page — the ON badge on the toolbar icon means it's active.
MIT