Copied to clipboard

Flag this post as spam?

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


  • ShannonC 6 posts 78 karma points
    Aug 24, 2021 @ 14:16
    ShannonC
    1

    Add Text color to TinyMce Rich Text Editor in Umbraco 9?

    Hello, I am trying to get textcolor plugin added to the rich text editor. I have tried this in appsettings.json and no luck.

     "Umbraco": {
        "CMS": {
          "Hosting": {
            "Debug": false
          },
          "Global": {
            "Id": "92b75f99..."
          },
          "RichTextEditor": {
            "Plugins": ["textcolor"]
          }
        }
      }
    
  • milkman matty 26 posts 109 karma points
    Oct 29, 2021 @ 11:55
    milkman matty
    1

    Hi ShannonC,

    I wrote a blog post about this, but the tl;dr is this:

    "RichTextEditor": {
      "Commands": [
        {
          "alias": "forecolor",
          "name": "Change Color",
          "mode": "Selection"
        },
        {
          "alias": "fontselect",
          "name": "Change Font Family",
          "mode": "Selection"
        },
        {
          "alias": "fontsizeselect",
          "name": "Change Font Size",
          "mode": "Selection"
        }
      ],
      "Plugins": [
        "textcolor",
        "colorpicker"
      ]
    }
    

    This will give you access to font colour, font size and font type.

  • ShannonC 6 posts 78 karma points
    Nov 18, 2021 @ 18:24
    ShannonC
    0

    Thank you very much for this. Working on adding specific colors now, will update with progress.

  • Kerox 2 posts 72 karma points
    16 days ago
    Kerox
    0

    Hello, have you managed to add custom colors to the RTE? I can't find anything related to this for Umbraco 9, thanks!

    Edit: I got it to work, this is the syntax:

    "RichTextEditor": {
        "CustomConfig": {
                  "textcolor_map": "[ \"000000\", \"Black\", \"e31c79\", \"Pink\" ]"
                }
     }
    

    So basically the array must be in quotes and the values escaped.

Please Sign in or register to post replies

Write your reply to:

Draft