Add table highlight colors

Is there a way to manually add highlight color options to text editor in Confluence?

Answer: NO.

This really is something Admins should be able to define... better yet, implement a global default defined by Confluence admins and allow space admins to define it at the space level.

1 answer

Doesn't look like Atlassian is willing to fix this soon ...

Using this JavaScript snippet, it's possible to add a new button.

AJS.$('.table-highlight-picker').append('<li><a href="#" class="hightlight-orange" data-highlight-colour="orange"></a></li>');

Now you just need some css, like

#table-highlight-group .table-highlight-picker a.highlight-orange {
  background-color: #FFB829;

Finally, copy the onclick event of any of the other colour picker options by:

var select = AJS.$('#table-highlight-group .table-highlight-picker a.highlight-orange');
select.onclick  = function () {
    var clickHandler = AJS.$('#table-highlight-group .table-highlight-picker a.highlight-yellow').onclick;

Just create a plugin out of this using your custom colours and have fun!

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Published yesterday in Confluence

Think you know shares vs. @mentions in Confluence? Take this collab quiz.

To anyone who doubts that Atlassians are a little too obsessed with collaboration, and tools related thereto, let me describe a recent discussion we had (which took place on our internal Confluence, ...

108 views 2 4
Read article

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