Forums

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

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 Champion
August 7, 2020

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

Ste

0 votes
Ste Wright
Community Champion
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