Drupal 8  8.0.2
/var/www/d8/core/modules/ckeditor/js/plugins/drupallink/plugin.js

Get the surrounding link element of current selection.

The following selection will all return the link element.

li^nk [link] text[link] li[nk] [li]nk] [li]nk

Parameters
{CKEDITOR.editor}editor The CKEditor editor object
Returns
{?HTMLElement} The selected link element, or null.