Copied to clipboard

Flag this post as spam?

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


  • Henrik Ladefoged 30 posts 100 karma points
    Jun 01, 2017 @ 13:18
    Henrik Ladefoged
    0

    Property editor rich text stylesheet

    I am creating a FAQ plugin using among others a rte element for bodytext.

        $scope.model.value.items.push({
            itemId: $scope.model.value.nextID,
            rte: {
                label: 'bodyText',
                description: '',
                view: 'rte',
                config: {
                    editor: {
                        toolbar: ["code", "undo", "redo", "cut", "styleselect", "bold", "italic", "bullist", "numlist", "link", "table"],
                        stylesheets: ["Backoffice"],
                        dimensions: { height: 200, width: '98%' }
                    }
                },
                value: ""
            }
        });
    

    The editor is working and saving data as it is supposed to do but haven't been able to find documentation for the "stylesheets" value. I tried both the name of the backoffice stylesheet (see code exampe) and the path to the actual stylesheet but nothing changes and the "formats" dropbox remains empty.

    My custom backoffice rte stylesheet is working perfectly with the normal rich text datatype.

    It is not a caching issue since all my other code changes work when they are made.

    Version: 7.5.13 Browser: Chrome latest

Please Sign in or register to post replies

Write your reply to:

Draft