//Make some modifications to the following code
//{type:'button',id:'browse',align:'center',label:,hidden:false,filebrowser:'info:txtUrl'}]}]},
//2009-07-13 Set the browsing server button to display (hidden: false), add the onClick function to open the ckfinder page
{ type: 'button', id: 'browse', align: 'center', label: , hidden: false, filebrowser: 'info:txtUrl', onClick: function() { var finder = new CKFinder(); = '../ckfinder20090716/'; = SetFileField; (); } }]}]},
Add the following function in vitro
//2009-07-13 Yang Xin added to retrieve the image address returned by ckfinder and assign values to the path text box and preview pictures
function SetFileField(fileUrl)
{
//Get all text box controls under the main Div
var inputStr = ("cke_txtContent_dialog").getElementsByTagName("Input");
for(var i=0; i<; i++)
{
if(inputStr[i].type=="text")
{
//The first input box control is the image path, get the ID, and set the new image path
(inputStr[i].id).setValue(fileUrl);
break ;
}
}
('previewImage').setAttribute('src', decodeURI(fileUrl));
}