X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Feditingblock%2Fplugin.js;h=8d54142d5992aa49601386bd3db510474b648300;hb=refs%2Ftags%2Fv3.2;hp=4d0885bd3c490b59b51f2f07a75e6a8c5b5f83ca;hpb=ea7e3453c7b0f023b050aca6d9f83ab372860d91;p=ckeditor.git diff --git a/_source/plugins/editingblock/plugin.js b/_source/plugins/editingblock/plugin.js index 4d0885b..8d54142 100644 --- a/_source/plugins/editingblock/plugin.js +++ b/_source/plugins/editingblock/plugin.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ @@ -95,25 +95,6 @@ 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() - { - editor.focus(); - }); - if ( editor.config.startupFocus ) editor.focus(); @@ -234,3 +215,10 @@ CKEDITOR.config.startupFocus = false; * config.editingBlock = false; */ CKEDITOR.config.editingBlock = true; + +/** + * Fired when a CKEDITOR instance is created, fully initialized and ready for interaction. + * @name CKEDITOR#instanceReady + * @event + * @param {CKEDITOR.editor} editor The editor instance that has been created. + */