X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=_source%2Fplugins%2Feditingblock%2Fplugin.js;h=7dbb92cf89597b3805ef05cc4a3d7d4072af3759;hb=refs%2Ftags%2Fv3.4.1;hp=8d54142d5992aa49601386bd3db510474b648300;hpb=059b4c2fef02528bf1af189f7996e80652faddfb;p=ckeditor.git diff --git a/_source/plugins/editingblock/plugin.js b/_source/plugins/editingblock/plugin.js index 8d54142..7dbb92c 100644 --- a/_source/plugins/editingblock/plugin.js +++ b/_source/plugins/editingblock/plugin.js @@ -95,6 +95,12 @@ For licensing, see LICENSE.html or http://ckeditor.com/license // Do that once only. event.removeListener(); + // Redirect the focus into editor for webkit. (#5713) + CKEDITOR.env.webkit && editor.container.on( 'focus', function() + { + editor.focus(); + }); + if ( editor.config.startupFocus ) editor.focus(); @@ -104,7 +110,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license setTimeout( function(){ editor.fireOnce( 'instanceReady' ); CKEDITOR.fire( 'instanceReady', null, editor ); - } ); + }, 0 ); }); } });