#1102 closed Bug (invalid)
hostname - url of inserted resource
Reported by: | Parahat Melayev | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | |
Keywords: | Cc: |
Description
When I add media or file from file browser, FCKEeditor adds full path but this won't work if you send e-mails created with FCKeditor as client will try to call path from its own host.
So I made some improvements at frmresourceslist.html on oListManager.AddFile as below
oListManager.AddFile = function( fileName, fileUrl, fileSize ) {
Create the new row. var oRow = this.Table.insertRow(-1) ;
Burayı ben ekledim (parahat) var sHostname = window.location.hostname; if(window.location.port.length > 0)
sHostname += ":" + window.location.port;
Build the link to view the folder.
var sLink = '<a href="#" onclick="OpenFile(\'http://' + sHostname + fileUrl + '\');return false;">' ;
Get the file icon. var sIcon = oIcons.GetIcon( fileName ) ;
Add the file icon cell. var oCell = oRow.insertCell(-1) ; oCell.width = 16 ; oCell.innerHTML = sLink + '<img alt="" src="images/icons/' + sIcon + '.gif" width="16" height="16" border="0"></a>' ;
Add the file name cell. oCell = oRow.insertCell(-1) ; oCell.innerHTML = ' ' + sLink + fileName + '</a>' ;
Add the file size cell. oCell = oRow.insertCell(-1) ; oCell.noWrap = true ; oCell.align = 'right' ; oCell.innerHTML = ' ' + fileSize + ' KB' ;
}
Attachments (1)
Change History (4)
Changed 17 years ago by
Attachment: | frmresourceslist.html added |
---|
comment:2 Changed 17 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
It is enough to set the full URL in the "UserFilesPath" setting of the file browser connector. In this way you can precisely control whether you want it or not to have the full URL.
comment:3 Changed 17 years ago by
Keywords: | file browser url path image e-mail removed |
---|
Improved frmresuorceslist.html