Ticket #5673: 5673.patch
File 5673.patch, 1.8 KB (added by , 14 years ago) |
---|
-
_source/plugins/tab/plugin.js
51 51 }); 52 52 } 53 53 54 if ( CKEDITOR.env.webkit )54 if ( CKEDITOR.env.webkit || CKEDITOR.env.gecko ) 55 55 { 56 56 editor.on( 'key', function( ev ) 57 57 { -
_source/plugins/wysiwygarea/plugin.js
472 472 } ); 473 473 } 474 474 475 var focusTarget = ( CKEDITOR.env.ie || CKEDITOR.env.webkit ) ? 476 domWindow : domDocument; 477 478 focusTarget.on( 'blur', function() 475 domWindow.on( 'blur', function() 479 476 { 480 477 editor.focusManager.blur(); 481 478 }); 482 479 483 focusTarget.on( 'focus', function()480 domWindow.on( 'focus', function() 484 481 { 485 // Force the cursor blinking. (#5622 486 CKEDITOR.env.gecko && blinkCursor(); 482 var doc = editor.document; 483 if ( CKEDITOR.env.gecko || CKEDITOR.env.opera ) 484 doc.getBody().focus(); 485 else if ( CKEDITOR.env.webkit ) 486 doc.getDocumentElement().focus(); 487 487 488 editor.focusManager.focus(); 488 489 }); 489 490 … … 769 770 isPendingFocus = true; 770 771 else if ( editor.window ) 771 772 { 772 // [Webkit] Force the cursor blinking 773 // when setting focus manually. (#5622) 774 CKEDITOR.env.webkit && blinkCursor(); 775 776 if ( CKEDITOR.env.opera ) 777 editor.document.getBody().focus(); 778 else 779 editor.window.focus(); 773 editor.window.focus(); 780 774 781 775 editor.selectionChange(); 782 776 }