case 'pdf':
if (strpos($_SERVER['REQUEST_URI'],"imagesList")) {
$images[] = $tmp;
} else {
$docs[] = $tmp;
}
In administrator/components/com_media/assets/popup-imagemanager.js and components/com_media/assets/popup-imagemanager.js line 120 add
if (url.match('.pdf'+"$")=='.pdf') {
if (alt == '' && url.lastIndexOf("/")>1) {
alt = url.substr(url.lastIndexOf("/") + 1); }
if (title == '') { extra = 'title="'+title+'" '; }
tag = "<a href=\""+url+"\" "+extra+">"+alt+"</a>";
}
In plugins\editors\tinymce\jscripts\tiny_mce\themes\advanced\link.htm line 48 add
<tr><td colspan="2">Note: To upload a PDF file and link to it you can use the Image link below the editor.</td></tr>