Index: /CKEditor/trunk/_source/plugins/link/dialogs/link.js
===================================================================
--- /CKEditor/trunk/_source/plugins/link/dialogs/link.js	(revision 7419)
+++ /CKEditor/trunk/_source/plugins/link/dialogs/link.js	(revision 7420)
@@ -1329,4 +1329,6 @@
 
 
+			var selection = editor.getSelection();
+
 			// Browser need the "href" fro copy/paste link to work. (#6641)
 			attributes.href = attributes[ 'data-cke-saved-href' ];
@@ -1335,6 +1337,5 @@
 			{
 				// Create element if current selection is collapsed.
-				var selection = editor.getSelection(),
-					ranges = selection.getRanges( true );
+				var ranges = selection.getRanges( true );
 				if ( ranges.length == 1 && ranges[0].collapsed )
 				{
@@ -1373,4 +1374,5 @@
 				}
 
+				selection.selectElement( element );
 				delete this._.selectedElement;
 			}
