Forums

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

Tooltip for text in the middle of a line

SANDERS, MANDY March 17, 2023

We are on Confluence Server and the environment is pretty locked down. No user-defined macros and no appetite to purchase macros or even install free ones.

I'm attempting to use the built-in tooltip macro to add definitions to certain words in a paragraph, but I can't figure out how to do it without causing a line break in the middle of a sentence.

What I want:

 tooltip1.png

What I tried:

tooltip2.png

(Note that all three words were on the same line before I highlighted "tooltip" and inserted the span macro.)

What I got:

tooltip3.png

 

My second attempt was using markup, which produced a more desirable result, but seems difficult to maintain as there's no indication when in edit mode that the markup exists and no way to edit it, as far as I can tell.

tooltip4.png

Is there a better way to achieve my desired result?

2 answers

1 accepted

2 votes
Answer accepted
Brant Schroeder
Community Champion
March 19, 2023

@SANDERS, MANDY Welcome to the Atlassian community

If you inspect the Tooltip Macro's html on the page can you see why a line break is occurring?

SANDERS, MANDY March 19, 2023

Great idea!  I found the culprit.  

source.png

I placed the above snippet in an HTML macro and removed the line break before the last word and now it works as expected.  Thank you!

0 votes
Zoriana Bogutska_Adaptavist_
Atlassian Partner
March 22, 2023

Hi @SANDERS, MANDY 

I'm one of a team that has developed this app Mosaic: Content Formatting Macros&Templates

So feel free to contact us for help with this or other macros: by support or tag me here.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events