Hello
I've been using fckeditor with php and setting absolute paths for images (that have to be sent as newsletters) is pretty straightforward
now I need to set up fckeditor with absolute image paths on windows, using asp
the docs ( here ) read
--------
You can configure the File Browser to return full URLs to FCKeditor, like "http://www.example.com/userfiles/", instead of absolute URLs, like "/userfiles/". To do that, you must configure the connector, combining the UserFilesPath and UserFilesAbsolutePath settings:
* UserFilesPath: include here the full URL for the user files directory. For example, set it to "http://www.example.com/userfiles/".
* UserFilesAbsolutePath: include here the server path to reach the above URL directory. For example, in a Windows environment, you could have something like "C:/inetpub/mysite/userfiles/", while on Linux, something like "/usr/me/public_html/mysite/userfiles/".
Just adjust the above settings to your installation values and the File Browser will start returning full URLs to the editor.
--------
I can't find the UserFilesAbsolutePath variable ... maybe the docs aren't up to date
how can I set absolute paths using the asp connector?
Tue, 07/07/2009 - 11:58
#1
Re: FCK 2.6.4.1 and absolute paths for images
Maybe the manual is written for Php, assuming it would be the same story for other programming languages.
When I open the config-file in the Asp-folder, I can't find the line too. But in the Aspx-folder I found it on line 56.
What happens if you don't set this absolute path in Asp?
If it the file browser functions normally, than why panic
And otherwise you can copy some lines from the Aspx-file
Re: FCK 2.6.4.1 and absolute paths for images
all the errors happen after clicking the image button and then 'Browse Server' (I suppose...I see it in italian)
any idea? has anybody used fckeditor with full paths on windows + asp????
Attachments:
Re: FCK 2.6.4.1 and absolute paths for images
nobody is sending out mailings with asp???
I really doubt full urls can't be obtained with asp...
the easy solution is to replace the relative path with full path before submitting the form but I hope there's a smarter solution..
Re: FCK 2.6.4.1 and absolute paths for images
I'm using too FCKeditor to compose a newsletter in ASP and I'm without a solution for now...
Re: FCK 2.6.4.1 and absolute paths for images
I've done a raw replace of /relative/path/to/images/ with http://www.domain.com/relative/path/to/images/ when saving the content and vice versa when retrieving the content to populate the form field
this is a pretty quick solution, anyway I think there's a better way to achieve this from within the editor's settings
Re: FCK 2.6.4.1 and absolute paths for images
I searched and searched and searched for the solution to this EXACT same problem using FCKEditor and ASP.
I eventually found what appears to be a solution for me that works quite well!!!
In the fck_image.js file located in /fckeditor/editor/dialog/fck_image/, I made a simple change to the SetUrl function to place my domain ahead of what eventually gets set.
In the SetUrl function find the line that looks like:
Re: FCK 2.6.4.1 and absolute paths for images
Just read the comment on ConfigUserFilesPath:
So why do you want some half-solution instead of getting all the potential of the connector?