Atlassian Confluence Source Editor app only displays a portion of source code
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
When using the Atlassian Confluence Source Editor, only a portion of the page's storage format code is displayed. It isn't possible to scroll or view the rest of the source code for the page within the Source Editor.
Environment
6.15.2
Cause
This is caused by a bug in the Adaptivist Scriptrunner app, SRCONF-757. If this add-on is being used with Confluence and the Source Editor is only displaying a portion of the source code, this is very likely the cause.
Workaround
The advised workaround from Adaptavist is to add the following to the Confluence Global Stylesheet:
Workaround CSS
1
2
3
4
5
6
7
8
.CodeMirror {
height: auto;
}
.CodeMirror-scroll{
margin-bottom: 0px;
margin-right: 0px;
padding-bottom: 0px;
}
Once this is added, the Source Editor should work as expected.
Was this helpful?