Skip to content

Commit

Permalink
enables default backspace and delete key when ICE is not tracking
Browse files Browse the repository at this point in the history
without this if you turn off track changes then the editor does not process deletes and backspaces
  • Loading branch information
danransom committed Aug 22, 2013
1 parent 59d022b commit 2fa1bea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tinymce/jscripts/tinymce4/plugins/ice/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
// make sure only the plugin is handling this event and not the editor
ed.on('keydown', function(e) {
// prevent the delete key and backspace keys from firing twice
if(e.keyCode == 46 || e.keyCode==8) {
if((e.keyCode == 46 || e.keyCode == 8) && self.isTracking) {
e.preventDefault();
}
});
Expand Down

0 comments on commit 2fa1bea

Please sign in to comment.