Give file links in content block MIME icons?
Permalink
Hi all
I'm trying to get TinyMCE to play ball with MIME icons but it's proving difficult. I saw the howto on automatically adding MIME icons to the File Block, and I wondered if it would be possible to employ the same logic for file links inserted into Content blocks.
I've been digging around ccm.filemanager.js, editor_controls.php etc but I am not nearly proficient enough work out what to do, although frustratingly I feel like it's just outwith my grasp.
Does anyone have any ideas? c5 has the $fv->getExtension() and $extension = $fh->mimeToExtension($mime) methods; I just don't know where to stick them in the code so pass that on to the HTML and CSS and apply the relevant class.
I'm trying to get TinyMCE to play ball with MIME icons but it's proving difficult. I saw the howto on automatically adding MIME icons to the File Block, and I wondered if it would be possible to employ the same logic for file links inserted into Content blocks.
I've been digging around ccm.filemanager.js, editor_controls.php etc but I am not nearly proficient enough work out what to do, although frustratingly I feel like it's just outwith my grasp.
Does anyone have any ideas? c5 has the $fv->getExtension() and $extension = $fh->mimeToExtension($mime) methods; I just don't know where to stick them in the code so pass that on to the HTML and CSS and apply the relevant class.