Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Luke 10 posts 132 karma points
    3 days ago
    Luke
    0

    Limit colours on the colour picker. Umbraco 13

    Hey using Umbraco 13, does anyone know how to limit colours available from the colour picker in the rich text editor?

    I have managed to get a colour picker by using the following in my appsettings

       "RichTextEditor": {
          "Commands": [
            {
              "Alias": "forecolor",
              "Name": "Color Picker",
              "mode": "Selection"
            }
          ],
          "Plugins": [],
          "CustomConfig": {
            "color_map": [
              "000000",
              "Black",
              "a4b69c",
              "Green"
            ]
    
        }
        }
    

    Which enables me to select the colour picker on the property editor:

    enter image description here

    Then it displays a colour picker on the editor. However, the colours are not limited

    enter image description here

    I have tried using textcolor_map

    "CustomConfig": {
      "textcolor_map": [
        "000000", "Black",
        "a4b69c",  "Green"
      ],
    

    and also using

     "color_picker": false
    

    But nothing seems to work. Any suggestions, I can try?

Please Sign in or register to post replies

Write your reply to:

Draft