99 | | editor.container.on( 'focus', function() |
| 99 | var focusGrabber = editor.container; |
| 100 | |
| 101 | // Safari 3 can't handle tabindex in all elements, so we do |
| 102 | // a trick to make it move the focus to the editor on TAB. |
| 103 | if ( CKEDITOR.env.webkit && CKEDITOR.env.version < 528 ) |
| 104 | { |
| 105 | var tabIndex = editor.config.tabIndex || editor.element.getAttribute( 'tabindex' ) || 0; |
| 106 | focusGrabber = focusGrabber.append( CKEDITOR.dom.element.createFromHtml( |
| 107 | '<input' + |
| 108 | ' tabindex="' + tabIndex + '"' + |
| 109 | ' style="position:absolute; left:-10000">' ) ); |
| 110 | } |
| 111 | |
| 112 | focusGrabber.on( 'focus', function() |