Ticket #4047: 4047_2.patch
File 4047_2.patch, 1.1 KB (added by , 14 years ago) |
---|
-
_source/plugins/wysiwygarea/plugin.js
433 433 if ( keystrokeHandler ) 434 434 keystrokeHandler.attach( domDocument ); 435 435 436 // Cancel default action for backspace in IE on control types. (#4047) 437 if ( CKEDITOR.env.ie ) 438 { 439 editor.on( 'key', function( event ) 440 { 441 // Backspace. 442 var control; 443 if ( ( event.data.keyCode == 8 ) 444 && ( control = editor.getSelection().getSelectedElement() ) ) 445 { 446 // Make undo snapshot. 447 editor.fire( 'saveSnapshot' ); 448 // Remove manually. 449 control.remove(); 450 editor.fire( 'saveSnapshot' ); 451 event.cancel(); 452 } 453 } ); 454 } 455 436 456 // Adds the document body as a context menu target. 437 457 if ( editor.contextMenu ) 438 458 editor.contextMenu.addTarget( domDocument );