Copied to clipboard

Flag this post as spam?

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


  • Alex 14 posts 95 karma points
    Mar 08, 2016 @ 13:15
    Alex
    0

    Configure RTE toolbar inside Grid custom data editor

    Hi,

    I am trying to configure RTE in my custom data editor so that it would only have two toolbar buttons: "HTML code" view and "Add link". The problem is that despite me configuring RTE settings for my Grid data type, the RTE in my custom data editor doesn't pickup those settings. Is it a bug or do I miss something in my implementation? How can I configure RTE?

    This is my editor.html:

    <div ng-controller="my.footerBlock">
    
    <h3><textarea rows="1" umb-auto-resize="" umb-auto-focus="" class="textstring input-block-level" ng-model="control.header" ng-attr-style="{{control.editor.config.style}}" localize="placeholder" placeholder="add header..."></textarea><h3>
    <div unique-id="control.$uniqueId"
                     value="control.value"
                     grid-rte configuration="control.config.rte">
                </div>
    </div>
    

    This is extract from the manifest file:

    {
      "name": "Footer block",
      "alias": "footerBlock",
      "view": "/app_plugins/MyGrid/footerBlock-editor.html",
      "render": "/app_plugins/MyGrid/footerBlock-render.cshtml",
      "icon": "icon-code",
      "config": {
        "size":  {"height": 50, "width": 100},
        "color": "red",
        "text-align": "left"
      }
    }
    

    Thanks! Alex

Please Sign in or register to post replies

Write your reply to:

Draft