Copied to clipboard

Flag this post as spam?

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


  • James 23 posts 156 karma points
    Feb 28, 2023 @ 22:00
    James
    0

    Adding a class list to Tiny MCE Tables

    I have seen documentation about adding a class list to tables in tiny mce, but having trouble adapting this to umbraco 10.

    This is the code I have but is not working, any help would be much appreciated:

    "Umbraco": { "CMS": { "Global": { "Id": "ac9f60ee-4abe-4e0c-ba7d-4b65e7ffbf22", "SanitizeTinyMce": true },

      "Content": {
        "AllowEditInvariantFromNonDefault": true,
        "ContentVersionCleanupPolicy": {
          "EnableCleanup": true
        }
      },
      "RichTextEditor": {
        "CustomConfig": {
          "table_class_list": [
            {
              "title": "None",
              "value": ""
            },
            {
              "title": "Editable Table",
              "value": "editablecontent"
            },
            {
              "title": "Other Class",
              "value": "other_table_class"
            }
          ]
        }
      }
    },
    
  • James 23 posts 156 karma points
    Feb 28, 2023 @ 23:05
    James
    100

    Managed to fix this by converting the object to a string:

    "Umbraco": { "CMS": { "Global": { "Id": "ac9f60ee-4abe-4e0c-ba7d-4b65e7ffbf22", "SanitizeTinyMce": true },

      "Content": {
        "AllowEditInvariantFromNonDefault": true,
        "ContentVersionCleanupPolicy": {
          "EnableCleanup": true
        }
      },
      "RichTextEditor": {
        "CustomConfig": {
          "table_class_list": "[{\"title\":\"None\",\"value\":\"\"},{\"title\":\"Editable Table\",\"value\":\"editablecontent\"},{\"title\":\"Other Class\",\"value\":\"other_table_class\"}]"
        }
      }
    },
    
Please Sign in or register to post replies

Write your reply to:

Draft