get #

name String

Gets the specified button from the toolbar.

var $button ='tune');

add #

name String
button Object

Adds a button to the toolbar.

(function() {
    Revolvapp.add('plugin', 'myplugin', {
        start: function() {
  'mybutton', {
                title: 'My Button',
                icon: '<i class="far fa-file-alt"></i>',
                command: 'myplugin.toggle'
        toggle: function(args) {
            // do something

In this example, Font Awesome is used for the button icon. You can add your own HTML and SVG icon.

Now call the editor with the plugin created:

Revolvapp('#myemail', {
    plugins: ['myplugin']

The button should appear on the toolbar when you click on any block and when it pressed, will call the plugin's toggle method.

See more about the parameters of the buttons.

remove #

name String

Removes the specified button from the toolbar.'tune');

disableButtons #

except (optional) Array

Disables buttons on the toolbar except specified buttons.['mybutton']);

enableButtons #

Enables all button on the toolbar.;