Created
August 27, 2012 19:27
-
-
Save mateusmaso/3491537 to your computer and use it in GitHub Desktop.
Redo fix with redactor.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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