Skip to content

Instantly share code, notes, and snippets.

@mateusmaso
Created August 27, 2012 19:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mateusmaso/3491537 to your computer and use it in GitHub Desktop.
Save mateusmaso/3491537 to your computer and use it in GitHub Desktop.
Redo fix with redactor.js
if (key === 90)
{
console.log(this.opts.buffer)
if (this.opts.buffer !== false)
{
e.preventDefault();
console.log(this.getBuffer());
}
else if (e.shiftKey)
{
this.shortcuts(e, 'redo'); // Ctrl + Shift + z
}
else
{
this.shortcuts(e, 'undo'); // Ctrl + z
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment