Hi
I have CMSMS 0.13 - Runing on Ensim/Apache, PHP 4, MySql 4ish. I have just done a fresh install CMSMS with the bundeled FCK editor 1.0 RC1. When I insert image and browse server I can see the file name of my images (along with a gif or jpeg icon) that have been uploaded, but I am wondering is there a way that you can preview the image with in the Resources Browser?
This isnt a bug or a broken feature I am just wondering if it is possible to preview images from within FCK editor's Resources Browser? If you had a whol load of images - It could be hard for end user to find the one he/she wants to use. Am I missing a setting that turns this on so it is like Content/Image Manager
Thanks - Gorm
FCKeditor - Resources Browser
Re: FCKeditor - Resources Browser
had the same problem. after i had a look at the album module with it's neat little popups i thought... why not in the resource browser.
so i changed the function GetFileRowHtml in modules/FCKeditorX/FCKeditor/editor/filemanager/browser/default/frmresourceslist.html to generate a little popup on mouseover of the icon..
regards teackele
so i changed the function GetFileRowHtml in modules/FCKeditorX/FCKeditor/editor/filemanager/browser/default/frmresourceslist.html to generate a little popup on mouseover of the icon..
Code: Select all
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 ) ;
var sExtension = fileName.substr( fileName.lastIndexOf('.') + 1 ).toLowerCase() ;
var aGraphics = new Array("gif", "png", "jpg", "jpeg");
var is_image = false;
for ( var i = 0 ; i < aGraphics.length ; i++ ) {
if (aGraphics[i] == sExtension) {
is_image = true;
break;
}
}
if (is_image) {
return '<tr>' +
'<td width="16" onmouseover="document.getElementById(\'' + fileName + '\').style.display=\'block\'" onmouseout="document.getElementById((\'' + fileName + '\')).style.display=\'none\'">' +
sLink +
'<img alt="" src="images/icons/' + sIcon + '.gif" width="16" height="16" border="0"></a>' +
'<div style="display:none;position:absolute;margin-top:20px;background-color:white;padding:5px;border:1px solid black" id="' + fileName + '"><img width="200" alt="" src="' + fileUrl + '" /></div>' +
'</td><td> ' +
sLink +
fileName +
'</a>' +
'</td><td align="right" nowrap> ' +
fileSize +
' KB' +
'</td></tr>' ;
} else {
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>' ;
}
}
- Elijah Lofgren
- Power Poster
- Posts: 811
- Joined: Mon Apr 24, 2006 1:01 am
Re: FCKeditor - Resources Browser
I just added thumbnail previews to the TinyMCE image browser: http://viewsvn.cmsmadesimple.org/viewsv ... e&view=revGorm wrote: This isnt a bug or a broken feature I am just wondering if it is possible to preview images from within FCK editor's Resources Browser? If you had a whol load of images - It could be hard for end user to find the one he/she wants to use. Am I missing a setting that turns this on so it is like Content/Image Manager
TinyMCE should be included with CMSMS 1.1 as default instead of FCKeditor.
If you are really interested in trying out TinyMCE with Thumbnail previews let me know and I'll try to create a new release with this new feature.
Screenshot attached.
[gelöscht durch Administrator]
Note: I don't have time to take on any more projects. I'm quite busy. I may be too busy to reply to emails or messages. Thanks for your understanding. 
