Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Highlight mention of current user in editor

Raphael R July 29, 2020

Hello Atlassian Community,

wherever my own, currently logged in user is mentioned on a Confluence page, the @username will be displayed with a blue background, whereas every other name is shown in the default grey. 

However, when I switch into edit mode, this distinction gets lost (the <a> element loses the class "current-user-link"), making it harder to find my own mentions and tasks on a long page.

Is there a way to get the current-user mention highlighted consistently in both modes?

 

View mode:

image.png

 

Edit mode:

image.png

 

Cheers

Raphael

2 answers

1 accepted

0 votes
Answer accepted
Raphael R August 7, 2020

Thank you Stephen for the suggestion!

But I've found out how to change the behaivor to exactly how I want it:

I've simply added these lines to the global stylesheet (<confluence>/admin/editstylesheet.action):

 

#tinymce.wiki-content a.user-mention.current-user-mention {
background-color: #0052CC;
color: #FFFFFF !important ;
}

 

Note: we're using Confluence 6.15 and this class name may change in the future. But I'm happy for now :)

 

Cheers,

Raphael 

Ste Wright
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 7, 2020

Awesome :) - thanks for sharing, this will be useful for others users who find this question!

Ste

0 votes
Ste Wright
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 1, 2020

Hi @Raphael R 

Not that I know of.

A simple alternative is to just use find on your web browser - usually activated by Ctrl+F / Cmd+F - to search for and highlight your username in edit mode.

Sometimes this utilises the Confluence finder - to utilise the browser version, you can usually click on the browser's bookmarks / navigation bar then use the keyboard shortcut above.

Ste

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
6.15.4
TAGS
AUG Leaders

Atlassian Community Events