Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Codeblocks are converted falsely

Robert E_ Schneider
Contributor
January 5, 2026

I just converted a legacy page to the new editor. 

In this page I had a lot of codeblocks that are "optional": when the page opens they appear reduced and you must click "Expand" to see the whole content. That is very important, because these textblocks are very long. Without this function, users are forced to scroll very much and the page looks very confusing.

The converted page no longer supports this "optionality" of codeblocks.

Thus, I am now looking at endless codeblocks :-(.

It really would be best if the "expand"-option for codeblocks was not depreceated. Actually, I really wonder, what drove you to take away from us this really important feature!

As it stands now, I have a lot of work: I must create an "Expansion" for each of my codeblocks and copy the codeblock into that. And I must do this on many pages (> 20). 

I'd really appreciate Atlassian to not cause this immense extra work!

1 answer

1 vote
Tomislav Tobijas
Community Champion
January 6, 2026

Hey @Robert E_ Schneider ,

Yeah... unfortunately, I would say that this would be the only path forward

As it stands now, I have a lot of work: I must create an "Expansion" for each of my codeblocks and copy the codeblock into that. And I must do this on many pages (> 20). 

The new editor does not support collapsing of the code block, although there's a feature request related to it: CONFCLOUD-72003: Allow further customization of the "Code" macro in the new editor (Different background color & ability to collapse the code block) 👀

As you've already converted the pages, you'll have to update them (manually or via API > which is also not that easy).

We do use the mentioned workaround with the Expand macro, but again, I didn't have a scenario where we had to convert/transform that many code blocks after switching from old editor 😕

Cheers,
Tobi

Barbara Szczesniak
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
January 6, 2026

@Robert E_ Schneider On the plus side (if there is a plus side), when you hover over the beginning of the code block, you can select the little icon and drag the code block into the expand.

image.png

Like # people like this
Robert E_ Schneider
Contributor
January 6, 2026

Excellent, thank you! Makes things a lot easier!

Like # people like this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events