/*\r
-Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.\r
+Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.\r
For licensing, see LICENSE.html or http://ckeditor.com/license\r
*/\r
\r
\r
var editor = this._.editor;\r
\r
- editor.container.getFirst().addClass( 'cke_focus' );\r
+ editor.container.getChild( 1 ).addClass( 'cke_focus' );\r
\r
this.hasFocus = true;\r
editor.fire( 'focus' );\r
{\r
var editor = this._.editor;\r
\r
- editor.container.getFirst().removeClass( 'cke_focus' );\r
+ editor.container.getChild( 1 ).removeClass( 'cke_focus' );\r
\r
this.hasFocus = false;\r
editor.fire( 'blur' );\r
}\r
}\r
};\r
+\r
+/**\r
+ * Fired when the editor instance receives the input focus.\r
+ * @name CKEDITOR.editor#focus\r
+ * @event\r
+ * @param {CKEDITOR.editor} editor The editor instance.\r
+ */\r
+\r
+/**\r
+ * Fired when the editor instance loses the input focus.\r
+ * @name CKEDITOR.editor#blur\r
+ * @event\r
+ * @param {CKEDITOR.editor} editor The editor instance.\r
+ */\r