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.yourdomain.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.
Please Don't forget to click "Mark as Answer" on the post that helped you.
This can be beneficial to other community members reading the thread.
24sharon
Member
140 Points
311 Posts
fckeditor how to add Absolute path to the url
Aug 07, 2008 02:34 PM|LINK
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!
cv_vikram
Star
8510 Points
1056 Posts
Re: fckeditor how to add Absolute path to the url
Aug 07, 2008 03:14 PM|LINK
You can get more information on that over here
http://expressionengine.com/wiki/FCKEditor/
or else this may help you
r/default"ml = function( fileName, fileUrl, fileSize )" which should be around line 65
OpenFile (\''
+ ProtectPath( fileUrl ) + '\');return false;">' ;/www.yourdomain.com '
+ fileUrl + '\');return false;">' ;
=======================
1. go to "editor/filemanager/browse
2. find "frmresourceslist.html"
3. edit the line below "oListManager.GetFileRowHt
4. from: var sLink = '<a href="http://forums.asp.net/AddPost.aspx?ReplyToPostID=2543443&Quote=False#" onclick="
to: var sLink = '<a href="http://forums.asp.net/AddPost.aspx?ReplyToPostID=2543443&Quote=False#" onclick="OpenFile(\'http:/
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.
This can be beneficial to other community members reading the thread.
24sharon
Member
140 Points
311 Posts
Re: fckeditor how to add Absolute path to the url
Aug 07, 2008 03:35 PM|LINK
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
Hong-Gang Ch...
All-Star
74695 Points
6767 Posts
Microsoft
Re: fckeditor how to add Absolute path to the url
Aug 12, 2008 08:19 AM|LINK
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.
If you have any feedback about my replies,please contactmsdnmg@microsoft.com.
Microsoft One Code Framework