It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Making the code block collapsible in the v2 editor

Is there a way to make the code block collapsible in the v2 editor? i can't find an option for it, and it needs to be collapsible, since the json im putting in there is 6000 lines long

3 answers

1 accepted

0 votes
Answer accepted

Hello Mat,

Thank you for bringing this up. It's not yet possible while we roll about the new editor, but we have a feature request below that would include that:

  • CONFCLOUD-66437 Allow further customization of the "Code" macro in the new editor

Please vote on the feature request and you will be automatically added to the list of watchers.

As a workaround, you might want to attach the code in a text file with a preview snippet using the code block macro.

Let me know if you have any further questions about that.

Regards,

Shannon

@Shannon_Spaniol Hi there -- it looks like I can no longer insert the Code block macro in confluence pages....and thus cannot make collapsible...is this true?

Hi Colin,

Welcome to Atlassian Community! It's nice to meet you.

The Code macro has replaced the original Code Block macro. The Code Block Macro was the one that has the ability to collapse, the Code macro does not.

The feature request I shared with Mat earlier would hopefully include a collapsible option for the new Code macro.

Can you confirm that you're able to insert the Code macro using the slash / command in the new editor?

Regards,

Shannon

This should not be classified as feature suggestion, it should be a bug because it is very frustrating to use the editor v2 when it lacks in such a trivial functionality like collapsibility and this was preset in v1.

Like # people like this

Hi Alexandra,

Thank you for following-up on this thread. I agree that the Code macro is definitely lacking in comparison to the Code Block macro.

However, the Code macro is a different macro entirely, thus the feature request for the missing capabilities that were offered in the former Code Block macro. 

There are multiple other missing features in the new version of the editor, so if you encounter anything else you find that is sorely lacking, you can compare with our Confluence Cloud Editor Roadmap to see if it's a feature we plan to include in the future.

Take care,

Shannon

Like Alexandra_Mihaltan likes this

As a workaround for a shitty new editor, I've put a code block inside an "Expand" element.

Like # people like this
They still have code blocks in the comments though!

But they don't expand...

Like Dylan_Frankland likes this
Like Tom Kremer likes this

Doesn't even let me to put the code snippet inside the expand block :facepalm:

@Darina Voloshyna may I ask if you managed to solve this issue? As I have faced the same now :( cannot add  code  inside  expand block

darina_v I'm New Here May 23, 2020

It is working only if it is not inside the table or other element. Just the expand block in a root of the document, and code block inside of it. But doing so inside the table won’t work :(

Thanks for prompt response @Darina Voloshyna !

P.S.: that's a pity to hear though (((

4 votes

Just adding my voice... collapsible code blocks were really useful... kept a page legible... people see a huge long page.. they dont read... if they dont read they give up and dont learn.

Needs to go in.. seriously needs to go in 

 

)

Why Atlassian take it away?  That's stoopid.

Like Andrea_Rossali likes this

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Confluence

How is your team having fun and bonding, remotely, utilizing Confluence?

Thanks everyone for answering last week’s question. The winner of the random drawing from those who commented is: @LarryBrock I’ll contact you separately with your prize details. This wee...

306 views 9 7
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you