X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Feditingblock%2Fplugin.js;h=7dbb92cf89597b3805ef05cc4a3d7d4072af3759;hb=c9fdde67e6384bd5a66adc2b3bba5c4ce9db56c7;hp=8996dc21e0c4df769b179e8048e14907adf5aea4;hpb=c6e377a02b54abc07129d72b632763c727476a15;p=ckeditor.git diff --git a/_source/plugins/editingblock/plugin.js b/_source/plugins/editingblock/plugin.js index 8996dc2..7dbb92c 100644 --- a/_source/plugins/editingblock/plugin.js +++ b/_source/plugins/editingblock/plugin.js @@ -95,21 +95,8 @@ For licensing, see LICENSE.html or http://ckeditor.com/license // Do that once only. event.removeListener(); - // Grab editor focus if the editor container is focused. (#3104) - var focusGrabber = editor.container; - - // Safari 3 can't handle tabindex in all elements, so we do - // a trick to make it move the focus to the editor on TAB. - if ( CKEDITOR.env.webkit && CKEDITOR.env.version < 528 ) - { - var tabIndex = editor.config.tabIndex || editor.element.getAttribute( 'tabindex' ) || 0; - focusGrabber = focusGrabber.append( CKEDITOR.dom.element.createFromHtml( - '' ) ); - } - - focusGrabber.on( 'focus', function() + // Redirect the focus into editor for webkit. (#5713) + CKEDITOR.env.webkit && editor.container.on( 'focus', function() { editor.focus(); }); @@ -123,7 +110,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license setTimeout( function(){ editor.fireOnce( 'instanceReady' ); CKEDITOR.fire( 'instanceReady', null, editor ); - } ); + }, 0 ); }); } });