Documentation

Toolbar

toolbar.fixed

Triggered when the toolbar is fixed on scroll.

$R('#content', {
    callbacks: {
        toolbar: {
            fixed: function()
            {
                // ...
            }
        }
    }
});

Listen to the message in a plugin:

(function($R)
{
    $R.add('plugin', 'myplugin', {
        init: function(app)
        {
            // define app
            this.app = app;
        },

        // messages
        ontoolbar: {
            fixed: function()
            {
                // ...
            }
        }
    });
})(Redactor);

toolbar.unfixed

Triggered when the toolbar is unfixed.

$R('#content', {
    callbacks: {
        toolbar: {
            unfixed: function()
            {
                // ...
            }
        }
    }
});

Listen to the message in a plugin:

(function($R)
{
    $R.add('plugin', 'myplugin', {
        init: function(app)
        {
            // define app
            this.app = app;
        },

        // messages
        ontoolbar: {
            unfixed: function()
            {
                // ...
            }
        }
    });
})(Redactor);