Solved: How can I limit the number of colors avail...
# help-with-umbraco
a
I'm struggling to limit the colors availible when using the 'textcolor' plugin. This is my current config in appsettings.json, which shows the textcolor button, but it shows all colors: "Umbraco": { "CMS": { "RichTextEditor": { "Commands": [ { "alias": "forecolor", "name": "Change Color", "mode": "Selection" } ], "Plugins": [ "textcolor" ], "CustomConfig": { "textcolor_map": "[ \"000000\", \"Black\", \"e31c79\", \"Pink\" ]" } } } }
Solved: I found in the documentation for TinyMCE 6+, they've introduced a new property for this configuration: color_map_foreground. So solved it by changing 'textcolor_map' to 'color_map_foreground' 🙂
3 Views