return;
}
try {
// We try to create a link with the current selection, if fails, we ask
// for a link
Range rg = range.asRange();
String text = DocHelper.getText(editor.getDocument(), rg.getStart(), rg.getEnd());
String linkAnnotationValue = Link.normalizeLink(text);
EditorAnnotationUtil.setAnnotationOverSelection(editor, AnnotationConstants.LINK_PREFIX, linkAnnotationValue);
} catch (InvalidLinkException e) {
String rawLinkValue =