X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fcore%2Ffocusmanager.js;h=933c3cf4941c5dfbb2c9c727dfc6561aef57d222;hb=refs%2Ftags%2Fv3.2;hp=0a3f5146b7a91aecf0ea4118aa2657e114392392;hpb=ea7e3453c7b0f023b050aca6d9f83ab372860d91;p=ckeditor.git diff --git a/_source/core/focusmanager.js b/_source/core/focusmanager.js index 0a3f514..933c3cf 100644 --- a/_source/core/focusmanager.js +++ b/_source/core/focusmanager.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 */ @@ -68,7 +68,7 @@ CKEDITOR.focusManager.prototype = var editor = this._.editor; - editor.container.getFirst().addClass( 'cke_focus' ); + editor.container.getChild( 1 ).addClass( 'cke_focus' ); this.hasFocus = true; editor.fire( 'focus' ); @@ -114,10 +114,24 @@ CKEDITOR.focusManager.prototype = { var editor = this._.editor; - editor.container.getFirst().removeClass( 'cke_focus' ); + editor.container.getChild( 1 ).removeClass( 'cke_focus' ); this.hasFocus = false; editor.fire( 'blur' ); } } }; + +/** + * Fired when the editor instance receives the input focus. + * @name CKEDITOR.editor#focus + * @event + * @param {CKEDITOR.editor} editor The editor instance. + */ + +/** + * Fired when the editor instance loses the input focus. + * @name CKEDITOR.editor#blur + * @event + * @param {CKEDITOR.editor} editor The editor instance. + */