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:

toggle-cloak-macro.png

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: https://answers.atlassian.com/questions/116396 

 

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

912 views 23 12
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