Copied to clipboard

Flag this post as spam?

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


  • Ryan Faurskov 3 posts 71 karma points
    25 days ago
    Ryan Faurskov
    0

    appsettings.json - RichTextEditor - CustomConfig - templates

    Hi

    How to add templates in the RichTextEditor/CustomConfig section in appsettings.json?

    In v8 it was a array of objects but in v9 it's a key value pairs of strings.

    V8enter image description here

    V9 enter image description here

    Anyone else run into this and found a solution?

    //Ryan

  • Sebastiaan Janssen 4957 posts 14864 karma points MVP admin hq
    25 days ago
    Sebastiaan Janssen
    0

    I haven't tried yet, but have you tried escaping it?

  • Ryan Faurskov 3 posts 71 karma points
    25 days ago
    Ryan Faurskov
    0

    I tried this but it didn't work

    "CustomConfig": {
              "Templates" : "[{ \"title\": \"Infobox Blue\", \"description\": \"A box with highlighted background color\", \"url\": \"../App_Plugins/RTE/infobox-blue.html\" }]"
            },
    
  • Ryan Faurskov 3 posts 71 karma points
    25 days ago
    Ryan Faurskov
    102

    Ahh templates with lowercase =)

    Thx

    "CustomConfig": {
          "templates" : "[{ \"title\": \"Infobox Blue\", \"description\": \"A box with highlighted background color\", \"url\": \"../App_Plugins/RTE/infobox-blue.html\" }]"
        },
    
Please Sign in or register to post replies

Write your reply to:

Draft