I really went with a plugin definition and using callback to call it; this allows you to call several functions / plugins from a callback and also looks like the intended approach.
Plugin:
RedactorPlugins.advanced = { your_method: function() {
your_method() now available on the redactor object and is simply called through below:
Editor's call:
$('#redactor').redactor({ keydownCallback: function() { this.your_method();
Original answer:
I know his lateness, but this evening I met this myself.
This worked for me:
RedactorPlugins.advanced = { init: function() { this.opts.keydownCallback = function(e) {
It simply calls the parameters and adds keyDownCallback . The only problem is that it can be added with only one plugin (since the last one on the called always overwrites the previous one).
source share