From 2fa1beaee06d4c7b81bb6af1c0d6ef4a3012773a Mon Sep 17 00:00:00 2001 From: danransom Date: Thu, 22 Aug 2013 14:09:03 -0700 Subject: [PATCH] enables default backspace and delete key when ICE is not tracking without this if you turn off track changes then the editor does not process deletes and backspaces --- lib/tinymce/jscripts/tinymce4/plugins/ice/plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tinymce/jscripts/tinymce4/plugins/ice/plugin.js b/lib/tinymce/jscripts/tinymce4/plugins/ice/plugin.js index 05a4de7c..34854cd4 100644 --- a/lib/tinymce/jscripts/tinymce4/plugins/ice/plugin.js +++ b/lib/tinymce/jscripts/tinymce4/plugins/ice/plugin.js @@ -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(); } });