Skip to content

Custom Buttons #89

@JYone3A

Description

@JYone3A

Is it possible to add custom button? For example I want to add a 'save' button, but would prefer to have it in the toolbar.

Maybe in the configuration for the editor, it could be possible to set something like this:

{
    // ...
    customButtons: {
        save: 'https://example.org/...', // path to button SVG
        saveAs: 'https://example.org/...',
    },
    // ...
    buttons: [ 'select', 'free', 'save', 'saveAs', 'trash' ]
}

Clicking the button should then just send out a new CustomEvent('custom-button', { detail: 'saveAs' }) or whatever the custom button name was.

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