Toggle cloak macro with an image instead of text: how to avoid the 'Image Preview'?

Hi all,

I would like to enable users to click on a image instead of some text, like in this example:


However, when clicking on the image, the 'Image Preview' is opening... Although the "cloak' section appears / hides well, is it possible to avoid the 'Image Preview'?


Thanks in advance,

2 answers

1 accepted

Hi Nicolas,

The steps for the solution is as follow:
1) Proceed to edit mode of the page
2) Click on the image
3) Click on link button
4) Click the on the Advanced link located on the left panel of the pop-up 
5) Enter the value #1 in the Link text-field
6) Save the page

Please note that setting the Link value #1 as a bogus anchor would eliminate the page reloading laugh

Credits to Javier Olazaguirre

Answer Source: 


Thanks @Muhammad Khalid Kader Mohideen , it works fine!

Nice bit of added trickery to eliminate the page refresh!

Try adding a Link to the graphic to just #. It will cause the page to reload, which might be better?

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Feb 06, 2019 in Confluence

Try out the new editing experience

Hi team, I’m Avinoam, a product manager on Confluence Cloud, and today I’m really excited to let the Community know that all customers can now try out the new editing experience and see some of the ...

1,340 views 96 8
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you