Answered by:
fckeditor how to add Absolute path to the url

Question
-
User1130413779 posted
when i add an image to my fckeditor i get a relative path
i want in the url get the Absolute path (with the http:// etc')
where can i config it?
thanks!
Thursday, August 7, 2008 10:34 AM
Answers
-
User-470797114 posted
You can get more information on that over here
http://expressionengine.com/wiki/FCKEditor/
or else this may help you
=======================
1. go to "editor/filemanager/browser/default"
2. find "frmresourceslist.html"
3. edit the line below "oListManager.GetFileRowHtml = function( fileName, fileUrl, fileSize )" which should be around line 65
4. from: var sLink = '<a href="http://forums.asp.net/AddPost.aspx?ReplyToPostID=2543443&Quote=False#" onclick="OpenFile (\'' + ProtectPath( fileUrl ) + '\');return false;">' ;
to: var sLink = '<a href="http://forums.asp.net/AddPost.aspx?ReplyToPostID=2543443&Quote=False#" onclick="OpenFile(\'http://www.yourd 'omain.com + fileUrl + '\');return false;">' ;
and it will then insert the full path to your image in the editor window.
(note: you may have to close your browser and reopen before this will take effect)========================
Hope this helped you.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Thursday, August 7, 2008 11:14 AM -
User1130413779 posted
first thanks
but this option not work for all the options
you can upload an image using the browse server than it work good
but you can also add image using ImageUpload on the image dialod and than you still get the relative path and not the absolute
http://expressionengine.com/forums/viewthread/39837/
here i found the same idea but with the same problems
function OpenFile( fileUrl )
{
var urlChange = 'http://www.highandlonesome.com'+fileUrl.toString();
window.top.opener.SetUrl(urlChange) ;
// window.top.opener.SetUrl( fileUrl )
window.top.close() ;
window.top.opener.focus() ;
}- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Thursday, August 7, 2008 11:35 AM -
User-2115483147 posted
Hi friend,
In my view, I would like to recommend htmlArea to you, here is the illustration:
and here is the link: http://www.codeproject.com/KB/scripting/htmlarea.aspx?df=100&forumid=4685&exp=0&select=1669999
Note, it is support Absolute path !!
I recommend this control to you because:
1.It is written by JavaScript, it do not dependen on browsers;
2.It is Free;
3.It is Open source;
4.It is easy to use;
5.I have been used it in my project;
6.You can download the code on the link.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Tuesday, August 12, 2008 4:19 AM
All replies
-
User-470797114 posted
You can get more information on that over here
http://expressionengine.com/wiki/FCKEditor/
or else this may help you
=======================
1. go to "editor/filemanager/browser/default"
2. find "frmresourceslist.html"
3. edit the line below "oListManager.GetFileRowHtml = function( fileName, fileUrl, fileSize )" which should be around line 65
4. from: var sLink = '<a href="http://forums.asp.net/AddPost.aspx?ReplyToPostID=2543443&Quote=False#" onclick="OpenFile (\'' + ProtectPath( fileUrl ) + '\');return false;">' ;
to: var sLink = '<a href="http://forums.asp.net/AddPost.aspx?ReplyToPostID=2543443&Quote=False#" onclick="OpenFile(\'http://www.yourd 'omain.com + fileUrl + '\');return false;">' ;
and it will then insert the full path to your image in the editor window.
(note: you may have to close your browser and reopen before this will take effect)========================
Hope this helped you.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Thursday, August 7, 2008 11:14 AM -
User1130413779 posted
first thanks
but this option not work for all the options
you can upload an image using the browse server than it work good
but you can also add image using ImageUpload on the image dialod and than you still get the relative path and not the absolute
http://expressionengine.com/forums/viewthread/39837/
here i found the same idea but with the same problems
function OpenFile( fileUrl )
{
var urlChange = 'http://www.highandlonesome.com'+fileUrl.toString();
window.top.opener.SetUrl(urlChange) ;
// window.top.opener.SetUrl( fileUrl )
window.top.close() ;
window.top.opener.focus() ;
}- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Thursday, August 7, 2008 11:35 AM -
User-2115483147 posted
Hi friend,
In my view, I would like to recommend htmlArea to you, here is the illustration:
and here is the link: http://www.codeproject.com/KB/scripting/htmlarea.aspx?df=100&forumid=4685&exp=0&select=1669999
Note, it is support Absolute path !!
I recommend this control to you because:
1.It is written by JavaScript, it do not dependen on browsers;
2.It is Free;
3.It is Open source;
4.It is easy to use;
5.I have been used it in my project;
6.You can download the code on the link.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Tuesday, August 12, 2008 4:19 AM