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\" ]"
}
}
}
}
Aksel
01/26/2024, 9:40 AM
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' 🙂