Hey, there! Look at our new WYSIWYG editor.

line.inserted #

Arguments
line Object line object

Triggered when the line is inserted to Redactor.

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

Listen to the message in a plugin:

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

        // messages
        online: {
            inserted: function(line)
            {
                // ...
            }
        }
    });
})(Redactor);