Copied to clipboard

Flag this post as spam?

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


  • Tom 713 posts 952 karma points
    May 09, 2017 @ 06:36
    Tom
    0

    Custom Grid Editor Rich Text- Custom Button

    Hi All, I have a custom grid editor which uses the rte view and alias.

    I have created a custom button which works well with the out of the box grid editor data types when I opt in via checkbox but for some reason even including it in the toolbar array it doesn't appear..

    Does anyone have experience getting this hooked up in a custom grid editor

    angular.module("umbraco").controller("Grid.RichTextEditorPlain", function ($scope, dialogService, tinyMceService) {
    $scope.control.value = $scope.control.value || { rte: null, heading: '' };
    
    if (!$scope.control.value.rte) {
        $scope.control.value.rte = {
            name: 'Rich text editor',
            alias: 'rte',
            view: 'rte',
            config: {
                editor: {
                    toolbar: ["styleselect", "link", "unlink", "CUSTOMBUTTONID"],
                    stylesheets: ['rte-plain'],
                    dimensions: { height: 200 }
                }
            }
        }
    }
    

    });

    enter image description here

    Even with custom button on it will never appear in the toolbar

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies