Documentation
Overview
Each callback receives Redactor object, so that you can always access any API methods from callback function using this, for example:
$R('#redactor', {
callbacks: {
started: function()
{
var html = this.api('module.source.getCode');
}
}
});
Or you can listen to the callbacks in your plugins, just add on
to the name of a callback.
(function($R)
{
$R.add('plugin', 'myplugin', {
init: function(app)
{
// define app
this.app = app;
},
// messages
onstarted: function()
{
// ... doSomething ...
}
});
})(Redactor);
dkjgvo65776inru43654