Copied to clipboard

Flag this post as spam?

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


  • Klaus Kunath 20 posts 118 karma points
    Feb 13, 2023 @ 10:52
    Klaus Kunath
    0

    showing templates in tinymce

    Has anyone a running sample for tinymce with Plugin "Template" for umbraco11?

  • Dave Woestenborghs 3504 posts 12133 karma points MVP 8x admin c-trib
    Feb 13, 2023 @ 14:41
    Dave Woestenborghs
    0

    Hi Klaus,

    You can configure TinyMce through app settings.

    https://docs.umbraco.com/umbraco-cms/reference/configuration/richtexteditorsettings

    You can probably do it through the custom config setting.

    I have used that for setting custom style formats.

    You may have to enable it through the Commands section.

    Dave

  • Chris Norwood 131 posts 642 karma points
    Feb 22, 2024 @ 15:11
    Chris Norwood
    0

    I've just had this fight with Umbraco 13 - here's the config I have that appears to work in my appsettings.json :

        "Plugins": [ "template"],
        "Commands": [
          {
            "Alias": "template",
            "Name": "Templates",
            "Mode": "All"
          }
        ],
        "CustomConfig": {
          "templates": "/App_Plugins/TinyMceTemplates/templates-config.html"
        }
    

    (I'm fairly sure that in Umbraco 10 the "Alias" was "templates" rather than "template", because I had a working example from an older project).

    The file templates-config.html is just a list of HTML files in a JSON format that the templates are from - the contents in my case are:

    [
    {"title" : "Summary List", "description": "A summary list designed to summarise information", "url": "/App_Plugins/TinyMceTemplates/template-summary-list.html"},
    {"title": "Dummy", "description" :"A test template", "content": "<p>oh hi I'm a test, ignore me</p>"}
    ]
    

    Hope that helps!

Please Sign in or register to post replies

Write your reply to:

Draft