Enable Blockquote in TinyMCE Umbraco V10
# help-with-umbraco
d
I have enabled Blockquote to appear in the toolbar in appsettings-schema.json as follows:
Copy code
"UmbracoCmsCoreConfigurationModelsRichTextEditorSettings": {
      "type": "object",
      "properties": {
        "Commands": {
          "type": "array",
          "description": "HTML RichText Editor TinyMCE Commands.\n            ",
          "items": {
            "$ref": "#/definitions/UmbracoCmsCoreConfigurationModelsRichTextEditorCommand"
          },
          "default": [ "blockquote" ] // Add "blockquote" to the array
        },
But it gets wiped out on build?
h
You can do that in appsettings.json
Copy code
"RichTextEditor": {
        "Commands": [
          {
            "Alias": "blockquote",
            "Name": "Quote",
            "Mode": "Selection"
          }
        ],
d
Ahh thank @huwred doh!
Hmm I have it like so but it stops the site
Copy code
"Umbraco": {
    "CMS": {
        ...
        "RichTextEditor": {
            "Commands": [
                {
                    "Alias": "blockquote",
                    "Name": "Quote",
                    "Mode": "Selection"
                }
            ]
        },
        ...
    },
    ...
}
h
Odd, worked for me
d
It may be where it's placed, it's a client site and has a lot of customisation. I'll ask thier devs, thank you.
Moved it driectly under
"CMS":
and now it works! Who knows.
Copy code
"Umbraco": {
    "CMS": {
      "RichTextEditor": {
        "Commands": [
          {
            "Alias": "blockquote",
            "Name": "Quote",
            "Mode": "Selection"
          }
        ]
      },
h
No longer works in 14 🙁 although blockquote is there by default, adding other plugins doesn't work. I usually add
Copy code
"Commands": [
          {
            "Alias": "codesample",
            "Name": "Code Sample",
            "Mode": "Insert"
          }
        ],
        "Plugins": [
          "codesample"
        ],
but nothing happens in 14
r
I think they moved the config to the frontend rather than in dotnet for v14? Can't remember for sure, but I think I remember reading that somewhere
h
Yes, you have to use a manifest file now, but can't get that to work either 🤣
r
Oh weird, that's annoyingh
h
well, I figured out how to add it, but it is not very usable 🤣 the layout of the popup make selecting the code language impossible. Manifest code below
Copy code
{
  "name": "My TinyMCE Plugin",
  "version": "1.0.0",
  "extensions": [
    {
      "type": "tinyMcePlugin",
      "alias": "mytinymceplugin",
      "name": "My TinyMCE Plugin",
      "meta": {
        "config": {
          "plugins": [
            "codesample"
          ]
        },
        "toolbar": [
          {
            "alias": "codesample",
            "label": "Code sample",
            "icon": "code-sample"
          }
        ]
      }
    }
  ]
}