Skip to main content

Custom actions

For more specific use case you can add custom buttons.

// Register a new button
editor.registerButton({
position: 'header', // 'footer' or 'header'
icon: '<svg .../></svg>',
action: () => alert('Hello world'),
title: 'Title'
})