MyBB Community Forums

Full Version: How to edit the color picker for posts?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How to edit the color picker for posts?

I have custom colors in my theme, and I'd love to include them in the color picker for posts.

I write a lot of articles in my forum, and use the the bold + colors as headlines and subheads to make the articles more readable online.

I'm doing it now using text expander (I have snippets for my colors, like so:
[color=#047979][b]here's a green[/b][/color]
= here's a green

But I would love to have the theme colors available in the color picker so that the forum members can use them too.

Is it possible to edit the standard MyBB color picker, or are there any plugins with alternative pickers?

Thank you!
If you're talking about the post editor, you can add your own colors by opening jscripts/editor.js and finding:

this.colors[40] = "#FFFFFF";

Add beneath it

this.colors[41] = "#047979";

You can add as many colors as you would like. Unfortunately, as far as I know, there isn't a way to do this via the Admin CP.
Ooooh! That works!
jshort, you are a genius!

Thank you!
No problem! Smile Happy to help.