I tried to change the filemanager a bit, so it shows little pictures, so ppl using the filemanager can see the pictures actual display.
so i went and modified the file:
fckeditor\editor\filemanager\browser\default\frmresourceslist.html
oListManager.GetFileRowHtml = function( fileName, fileUrl, fileSize ) { // Build the link to view the folder. var sLink = '<a href="#" onclick="OpenFile(\'' + ProtectPath( fileUrl ) + '\');return false;">' ; If (fileSize < 100) { return '<tr><td width="16">' + sLink + '<img alt="" src="/images/upload/Image' + fileName + '" width="100" height="75" border="0"><\/a>' + '<\/td><td> ' + sLink + fileName + '<\/a>' + '<\/td><td align="right" nowrap> ' + fileSize + ' KB' + '<\/td><\/tr>' ; } else { // Get the file icon. var sIcon = oIcons.GetIcon( fileName ) ; return '<tr><td width="16">' + sLink + '<img alt="" src="images/icons/' + sIcon + '.gif" width="16" height="16" border="0"><\/a>' + '<\/td><td> ' + sLink + fileName + '<\/a>' + '<\/td><td align="right" nowrap> ' + fileSize + ' KB' + '<\/td><\/tr>' ; } }
It should show images that are smaller then 100kb, but it isn't working... I also think it need an extension check... anyway it's in the pictures folder so I guess it won't show any other files as pictures
please help!
P.S.
I am a JavaScript n00b