code: function( editor ) {
  			var selection = editor.getSelection();
  			var selectedElement = selection.getSelectedElement();
  			if ( selectedElement && selectedElement.is( 'a' ) )
  				return selectedElement;
  
  			var range = selection.getRanges()[ 0 ];
  
  			if ( range ) {
  				range.shrink( CKEDITOR.SHRINK_TEXT );
  				return editor.elementPath( range.getCommonAncestor() ).contains( 'a', 1 );
  			}
  			return null;
  		}
docs: Get the surrounding link element of the current selection.
  
  CKEDITOR.plugins.link.getSelectedLink( editor );
  
  // The following selections will all return the link element.
  
  <a href="#">li^nk</a>
  <a href="#">[link]</a>
  text[<a href="#">link]</a>
  <a href="#">li[nk</a>]
  [<b><a href="#">li]nk</a></b>]
  [<a href="#"><b>li]nk</b></a>
  
  @since 3.2.1
  @param {CKEDITOR.editor} editor