redactor-wysiwyg
Version:
Redactor WYSIWYG HTML editor
16 lines (15 loc) • 446 B
JavaScript
(function($)
{
$.Redactor.prototype.bufferbuttons = function()
{
return {
init: function()
{
var undo = this.button.addFirst('undo', 'Undo');
var redo = this.button.addAfter('undo', 'redo', 'Redo');
this.button.addCallback(undo, this.buffer.undo);
this.button.addCallback(redo, this.buffer.redo);
}
};
};
})(jQuery);