支持最后一个fck版本,新版本没测试过,首先打开源代码
fckeditoreditorfilemanagerbrowserdefaultfrmresourceslist.html
打开编辑GetFileRowHtml 函数:
oListManager.GetFileRowHtml = function( fileName, fileUrl, fileSize )
{ // Build the link to view the folder. var sLink = ‘<a href=”#” onclick=”OpenFile(” + fileUrl.replace( /’/g, ‘\”) + ”);return false;”>’ ;
// 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 +
‘<img src=”‘ + fileUrl + ‘” width=”100″ height=”100″ border=”0″/>’ + //添加红色部分即可
‘</a>’ + ‘</td><td align=”right” nowrap> ’ + fileSize + ‘ KB’ + ‘</td></tr>’ ; }
测试有效