How to change the default font colors?
January 25, 2022, 12:16:01 pm
Me again. I would like to add a new color to the color picker when selecting the font color for a new post, and want to change two old colors slightly. Where can I do this (theme BeSocial)? I can't find the right pages again. Only here I could find a line with the names of the current colors (line 81): themes/default/GenericControls.template.php
Re: How to change the default font colors?
Reply #2 – January 28, 2022, 01:36:17 pm
Thank you for the explanation. I had thought that somewhere I also have to change or enter hex codes of the colors, such as this: #0066CC
Re: How to change the default font colors?
Reply #3 – January 28, 2022, 06:05:37 pm
Not the editor colors. Those will simply be rendered as,, for example,<span style="color: darkred;" class="bbc_color">test</span> So simply a named color CSS value that the browser needs to know. Now the user can use hexcodes, or RGB values, etc in the BBC color tag,, but the editor is set to only use named colors (at least as far as I know, meaning that is all I've ever tried)
Re: How to change the default font colors?
Reply #4 – January 30, 2022, 05:22:27 am
Is that SCEditor you’re using? You should be able to feed it hexcodes with a # in front.
Re: How to change the default font colors?
Reply #5 – January 31, 2022, 05:12:40 am
No, it's the standard/default editor of Elkarte. But I'll have a closer look at the SCEditor now. :)
Re: How to change the default font colors?
Reply #6 – January 31, 2022, 06:48:37 am
Yes, that’s a component called SCEditor. It does support passing in colours since I did this on my forum, I made a space in the admin where the colour and font options in the editor could be set.