Index: CKEditor/trunk/CHANGES.html
===================================================================
--- CKEditor/trunk/CHANGES.html (revision 6958)
+++ CKEditor/trunk/CHANGES.html (revision 6960)
@@ -75,4 +75,5 @@
#7192 : [IE] Selecting paragrpah format in an empty editor without focus didn't bring focus into editor body.
#7158 : Width and height fields in the iframe dialog are now synchronized with the style field.
+ #7893 : [Webkit, Opera] It was impossible to link to anchors in the document.
Updated the following language files:
- #7834 : Dutch;
Index: CKEditor/trunk/_source/plugins/link/dialogs/link.js
===================================================================
--- CKEditor/trunk/_source/plugins/link/dialogs/link.js (revision 6958)
+++ CKEditor/trunk/_source/plugins/link/dialogs/link.js (revision 6960)
@@ -253,4 +253,14 @@
item = anchorList.getItem( i );
anchors[ i ] = { name : item.getAttribute( 'name' ), id : item.getAttribute( 'id' ) };
+ }
+
+ if ( CKEDITOR.plugins.link.fakeAnchor )
+ {
+ var imgs = editor.document.getElementsByTag( 'img' ), anchor;
+ for ( i = 0, count = imgs.count(); i < count; i++ )
+ {
+ if ( ( anchor = CKEDITOR.plugins.link.tryRestoreFakeAnchor( editor, imgs.getItem( i ) ) ) )
+ anchors.push( { name : anchor.getAttribute( 'name' ), id : anchor.getAttribute( 'id' ) } );
+ }
}