X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fcore%2Ffocusmanager.js;h=933c3cf4941c5dfbb2c9c727dfc6561aef57d222;hb=059b4c2fef02528bf1af189f7996e80652faddfb;hp=cf4e50f2eec4d8791749e8e7db5121721749df68;hpb=941b0a9ba4e673e292510d80a5a86806994b8ea6;p=ckeditor.git diff --git a/_source/core/focusmanager.js b/_source/core/focusmanager.js index cf4e50f..933c3cf 100644 --- a/_source/core/focusmanager.js +++ b/_source/core/focusmanager.js @@ -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. + */