Skip to content

How to add button to default layout? #185

Description

@jfmdev

Hi, I have successfully followed the tutorial Creating a basic Raptor Button.

However, when using this code:

      $('.editable').raptor({
        layouts: {
            toolbar: {
                uiOrder: [
                    ['cancel', 'custom-button']
                ]
            },
            hoverPanel: {
                uiOrder: [
                    ['clickButtonToEdit']
                ]
            },
        }
    });

All buttons disappears from Raptor Editor, except the Cancel button and the Custom button.
And if I do not define the toolbal parameter:

      $('.editable').raptor({

    });

Then all the standard buttons appears, except the Custom button.

Is there a way of adding a new custom button and display it along with the default buttons?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions