Double Clicking on Confluence Code Block Macro Doesn't Disable Formatting

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

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

Problem

After upgrade Confluence to version 5.9 or above, double-clicking on a multi-line code snippet doesn't disable formatting but it selects/highlights the entire code block instead.

Cause

The behavior is due to Code Block macro bundled with Confluence version 5.9 or above are now using the open source API SyntaxHighlighter and double-clicking it now will select the entire code block instead. The defaults behavior for it as stated in their update note below:

Workaround

  • Download the following code block plugin (the exact version found in Confluence 5.8.x):
  • Replace the plugin under <confluence-installation>/confluence/WEB-INF/atlassian-bundled-plugins
  • Archive the newer version of code block plugin
  • Clear off plugin cache
  • Restart Confluence
  • Test the code block plugin

(info) Ongoing Suggestion Ticket to Remove the Double-Clicking Feature :  CONFSERVER-43063 - Getting issue details... STATUS



Last modified on Dec 18, 2019

Was this helpful?

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