Ticket #6192: 6192_2.patch

File 6192_2.patch, 783 bytes (added by Tobiasz Cudnik, 14 years ago)
  • _source/plugins/wysiwygarea/plugin.js

     
    616616                                                                editor.focusManager.blur();
    617617                                                        });
    618618
     619                                                var wasFocused = 0;
     620
    619621                                                domWindow.on( 'focus', function()
    620622                                                        {
    621623                                                                var doc = editor.document;
     
    624626                                                                        blinkCursor();
    625627                                                                else if ( CKEDITOR.env.opera )
    626628                                                                        doc.getBody().focus();
     629                                                                else if ( CKEDITOR.env.webkit )
     630                                                                {
     631                                                                        if ( !wasFocused )
     632                                                                        {
     633                                                                                editor.document.getDocumentElement().focus();
     634                                                                                wasFocused = 1;
     635                                                                        }
     636                                                                }
    627637
    628638                                                                editor.focusManager.focus();
    629639                                                        });
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy