Discourse Coloured Text

“BBCode-lite” without the need to install a plugin …

Adds a simple control (palette icon) to the Composer to facilitate colouring of the foreground and background of text

  • Select a word or text
  • Hit the palette control
  • It will be wrapped like so: [wrap=color color=# bgcolor=#]word[/wrap]
  • Replace the #s with html-compatible colour names, e.g. “red”, “grey” … experiment.

:biohazard: NB Same caveats apply as to BBCode: can be used to hide text.

Credits

17 Likes

Thanks a ton for this useful little component.
It doesn’t seem to be applying the composer.color_ui_button_title properly, both when left at the default or when customized:

Screenshot from 2023-03-19 12-36-30

1 Like

Hello there. I don t have color text button like on this foto. Here I don t see too.

3cb9195635135aec1a3341f3015258023e5f0386

This theme-component is not installed here. That is why the button does not appear.
Did you add it to your site?

Wenn ich wusste wie Plugin hinzuefugen es waere gut.

I’ve fixed this.

1 Like

There is a guide how to Install a theme or theme component
All the information is part of the table in the first post

3 Likes

Thanks very much!

1 Like

Excellent component!

Bug report: If I click the palette button with no text selected, it inserts the translation descriptor instead of the ‘default text’:

[en_GB.composer.color_ui_default_text]
isn’t found in the site text customization menu, and isn’t on the component settings page.

image

1 Like