diff --git a/CHANGES.md b/CHANGES.md index 8717e67329c..3ee284e7478 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -13,6 +13,7 @@ CKEditor 4 Changelog * [#9903](http://dev.ckeditor.com/ticket/9903): [Inline editor] Bad positioning of floating space with page h-scroll. * [#9872](http://dev.ckeditor.com/ticket/9872): Editor.checkDirty() returns true when called onload. Removed obsolete editor.mayBeDirty flag. * [#9893](http://dev.ckeditor.com/ticket/9893): Fixed broken toolbar when editing mixed-dir content in quirks mode. +* [#9845](http://dev.ckeditor.com/ticket/9845): Fixed TAB navigation in the Link dialog and the Anchors option is used and no anchors are available. ## CKEditor 4.0.1 diff --git a/plugins/dialogui/plugin.js b/plugins/dialogui/plugin.js index 2068a139917..bb66d9d3355 100644 --- a/plugins/dialogui/plugin.js +++ b/plugins/dialogui/plugin.js @@ -702,9 +702,9 @@ CKEDITOR.plugins.add( 'dialogui', { // Look for focus function in definition. var focus = elementDefinition.focus; if ( focus ) { + var oldFocus = this.focus; this.focus = function() { - this.selectParentTab(); - typeof focus == 'function' && focus.call( this ); + ( typeof focus == 'function' ? focus : oldFocus ).call( this ); this.fire( 'focus' ); }; if ( elementDefinition.isFocusable ) {