Copied to clipboard

Flag this post as spam?

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


  • Marcus 42 posts 183 karma points
    Nov 23, 2023 @ 10:45
    Marcus
    0

    How to set text color in Rich Text Edito?

    Hi guy. I am using umbraco 12.2.0 and dont know how to set text color when editing content in rich text editor.

    enter image description here

    Thank for any help.

  • Huw Reddick 1932 posts 6722 karma points MVP 2x c-trib
    Nov 23, 2023 @ 11:06
    Huw Reddick
    100

    You need to add some settings to your appsettings.json file for the RichTextEditor, for example

    "RichTextEditor": {
      "Commands": [
         ...
        {
          "Alias": "forecolor",
          "Name": "Change Color",
          "mode": "Selection"
        }
      ],
      "Plugins": [
        "textcolor",
        "colorpicker"
      ],
            "CustomConfig": {
              "textcolor_map": "[ \u0022000000\u0022, \u0022Black\u0022, \u0022a4b69c\u0022, \u0022Green\u0022 ]",
    
            }
          }
    
  • Marcus 42 posts 183 karma points
    Nov 29, 2023 @ 06:21
    Marcus
    0

    Hi Huw Reddick,

    Thanks for your solution. However I would like to see the documentation. Can you share with me where is it? I am being navigated to TinyMCE page from Umbraco documentation and I don't see any configuration for umbraco. They are showing for Angular, Vue,... https://www.tiny.cloud/docs/advanced/editor-command-identifiers/

  • Huw Reddick 1932 posts 6722 karma points MVP 2x c-trib
    Nov 29, 2023 @ 07:54
    Huw Reddick
    100

    There is no definitive documentation for this, but there are plenty of posts here in the forum discussing this. Here is another with a link to a blog post.

    https://our.umbraco.com/forum/umbraco-9/106934-add-text-color-to-tinymce-rich-text-editor-in-umbraco-9

  • Marcus 42 posts 183 karma points
    Dec 07, 2023 @ 03:27
    Marcus
    0

    Thank you

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies