Is there a way to manually add highlight color options to text editor in Confluence?
Answer: NO.
https://jira.atlassian.com/browse/CONF-27618
https://jira.atlassian.com/browse/CONF-27496
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.
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; clickHandler.apply(this); };
Just create a plugin out of this using your custom colours and have fun!
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.