Hi,
I'm using FCK for editing email templates but it inserts the relative url of the image making it useless for emails as email require the full url. Can FCK be configured to insert the full url for images rather than the default relative?
Thanks,
Damien
I'm using FCK for editing email templates but it inserts the relative url of the image making it useless for emails as email require the full url. Can FCK be configured to insert the full url for images rather than the default relative?
Thanks,
Damien
RE: Full Url for image
I know how to do it in the Coldfusion version and could point you to the right file.
The path is the following: \FCKeditor\filemanager\browser\default\connectors\cfm\connector.cfm
So if you are not using the "cfm" (coldfusion) then find the appropriate sub-folder and make the change.
log change
==========
was:
xmlHeader = xmlHeader & '<CurrentFolder path="#url.currentFolder#" url="#userFilesPath##url.type##url.currentFolder#" />';
changed to:
xmlHeader = xmlHeader & '<CurrentFolder path="#url.currentFolder#" url="http://#CGI.SERVER_NAME##userFilesPath##url.type##url.currentFolder#" />';
==========
of course, my changes were coldfusion related and may be much different than the ones you need to make.
RE: Full Url for image
Thanks for the pointer. I'm using ASP.Net and the equivalent file has no code in it as it uses compiled code from the FCK .Net assembly.
So open up the file FileBrowserConnector.cs
And at link 105 and change
XmlUtil.SetAttribute( oCurrentNode, "url", GetUrlFromPath( resourceType, currentFolder) ) ;
with
XmlUtil.SetAttribute(oCurrentNode, "url", "http://" + this.Request.Url.Host + GetUrlFromPath(resourceType, currentFolder));
Recompile and add a reference to the new assembly and you should now get the full url.