Hey, there! Look at our new WYSIWYG editor.

start #

Triggered before Redactor launch.

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

Listen to the message in a plugin:

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

        // messages
        onstart: function()
        {
            // ...
        }
    });
})(Redactor);

started #

Triggered when Redactor is launched.

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

Listen to the message in a plugin:

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

        // messages
        onstarted: function()
        {
            // ...
        }
    });
})(Redactor);

stop #

Triggered before Redactor stop.

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

Listen to the message in a plugin:

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

        // messages
        onstop: function()
        {
            // ...
        }
    });
})(Redactor);

stopped #

Triggered when Redactor is stopped.

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

Listen to the message in a plugin:

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

        // messages
        onstopped: function()
        {
            // ...
        }
    });
})(Redactor);