Ticket #4736: 4736.patch
File 4736.patch, 2.0 KB (added by , 14 years ago) |
---|
-
_source/plugins/wysiwygarea/plugin.js
449 449 if ( keystrokeHandler ) 450 450 keystrokeHandler.attach( domDocument ); 451 451 452 // Cancel default action for backspace in IE on control types. (#4047)453 452 if ( CKEDITOR.env.ie ) 454 453 { 454 // Cancel default action for backspace in IE on control types. (#4047) 455 455 editor.on( 'key', function( event ) 456 456 { 457 457 if( editor.mode != 'wysiwyg' ) … … 470 470 event.cancel(); 471 471 } 472 472 } ); 473 } 473 474 // PageUp/PageDown scrolling is broken in document 475 // with standard doctype, manually fix it. (#4736) 476 if( domDocument.$.compatMode == 'CSS1Compat' ) 477 { 478 editor.on( 'key', function( event ) 479 { 480 if( editor.mode != 'wysiwyg' ) 481 return; 482 483 if( event.data.keyCode in { 33 : 1, 34 : 1 } ) 484 { 485 setTimeout( function () 486 { 487 editor.getSelection().scrollIntoView(); 488 }, 0 ); 489 } 490 } ); 491 } 492 } 474 493 475 494 // Adds the document body as a context menu target. 476 495 if ( editor.contextMenu ) -
_source/plugins/selection/plugin.js
949 949 } 950 950 this.selectRanges( ranges ); 951 951 return this; 952 }, 953 954 // Moving scroll bar to the current selection's start position. 955 scrollIntoView : function() 956 { 957 // If we have split the block, adds a temporary span at the 958 // range position and scroll relatively to it. 959 var start = this.getStartElement(); 960 start.scrollIntoView(); 952 961 } 953 962 }; 954 963 })();