Copied to clipboard

Flag this post as spam?

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


  • Andy Felton 185 posts 484 karma points c-trib
    Jan 28, 2020 @ 14:48
    Andy Felton
    0

    Tiny MCE Rich Text Editor in Custom Property Editor

    Hi,

    I'm creating a custom property editor and need to add a Rich Text Editor to it. I was wondering if anybody has any code which shows how to get this working on V8?

    Thanks Andy

  • Marc Goodson 2157 posts 14434 karma points MVP 9x c-trib
    Jan 28, 2020 @ 22:30
    Marc Goodson
    1

    Hi Andy

    You could have a look at the Editor Notes package... that has a Rich Text Editor as a configuration editor:

    so I have a view:

    <div ng-controller="RichTextPreValueEditorController" class="">
        <umb-property-editor model="editornotes"></umb-property-editor>
    </div>
    

    and then in my controller I configure the model for the umb-property-editor:

    $scope.editornotes = {
                label: 'bodyText',
                description: 'Enter notes for editor',
                view: '/umbraco/views/propertyeditors/rte/rte.html',
                value: $scope.model.value,
                config: {
                    editor: {
                        toolbar: ["ace", "undo", "redo", "cut", "styleselect", "bold", "italic", "alignleft", "aligncenter", "alignright", "bullist", "numlist", "link", "umbmediapicker", "umbmacro", "umbembeddialog"],
                        stylesheets: [],
                        dimensions: {},
                        mode: "classic"
                    }
                }
            };
    

    if that's the steer you are after?

    regards

    Marc

  • Andy Felton 185 posts 484 karma points c-trib
    Jan 29, 2020 @ 18:45
    Andy Felton
    0

    Thanks Marc that sorted it! Just a layout issue to sort now.

  • 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