“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.
NB Same caveats apply as to BBCode: can be used to hide text.
Credits
- Uses @joffreyjaffeux’s Generic bbcode wrapper for theme components
- Co-authored by @Johani who added yet more (original discussion here: BBcode color tags in a theme - #2 by merefield)
https://github.com/merefield/discourse-tc-coloured-text |
GitHub - merefield/discourse-tc-coloured-text: A simple Theme Component alternative to the BBCode colouring plugin | |
Install Guide | How to install a theme or theme component | |
New to Discourse Themes? | Beginner’s guide to using Discourse Themes |