Copied to clipboard

Flag this post as spam?

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


  • Andy Bonner 2 posts 72 karma points
    15 days ago
    Andy Bonner
    0

    Using RTE within settings of a custom grid editor

    I'm trying to use an RTE for a setting within my custom grid editor however no toolbar shows.

    What am I doing wrong.

    Here's how I've configured the setting within the package.manifest, tried 2 different ways

    "testRTE": {
            "label": "Test RTE",
            "key": "testRTE",
            "description": "Test RTE",
            "view": "/umbraco/views/propertyeditors/rte/rte.html",
            "config": {
              "editor": {
                "toolbar": [ "code", "undo", "redo", "cut", "styleselect", "bold", "italic", "alignleft", "aligncenter", "alignright", "bullist", "numlist", "link", "umbmediapicker", "umbmacro", "table", "umbembeddialog" ],
                "stylesheets": [],
                "dimensions": {
                  "height": 400,
                  "width": 250
                }
              }
            }
          },
          "testRTE2": {
            "label": "Test RTE2",
            "key": "testRTE2",
            "description": "Test RTE2",
            "view": "/umbraco/views/propertyeditors/grid/editors/rte.html",
            "config": {
              "editor": {
                "toolbar": [ "code", "undo", "redo", "cut", "styleselect", "bold", "italic", "alignleft", "aligncenter", "alignright", "bullist", "numlist", "link", "umbmediapicker", "umbmacro", "table", "umbembeddialog" ],
                "stylesheets": [],
                "dimensions": {
                  "height": 400,
                  "width": 250
                }
              }
            }
          }
    

    However in the settings pane i don't see the toolbar for the RTE No toolbar showing in settings

  • velasfo 2 posts 71 karma points
    1 week ago
    velasfo
    0

    $index did not work, including some variants I tried, like control.$index. However, inspired by your answer I managed to succeed by using "control.$uniqueId+1", "control.$uniqueId+2", ... It is possible that I am doing something wrong somewhere else so your answer is not working in my case, but I am marking this as an accepted answer anyway. 9Apps Lucky Patcher VidMate

Please Sign in or register to post replies

Write your reply to:

Draft