Has anyone managed to get the BaseHref variable in fckconfig.js to work? Im trying to make the editor put in http://www.mydomain.com into the src of all my images, but it doesn't.
Tue, 10/16/2007 - 14:47
#1
Re: BaseHref - Does it work?
You should check the post http://www.fckeditor.net/forums/viewtopic.php?f=6&t=7295&p=19389&hilit=basehref#p19389. Basically what you need to do is open the editor/dialog/fxk_image/fck_image.js file and look for the SetUrl function. Once you find that change the following two lines:
Original
GetE('txtLnkUrl').value = url ;
New
GetE('txtLnkUrl').value = FCKConfig.BaseHref + url ;
Original
GetE('txtUrl').value = url ;
New
GetE('txtUrl').value = FCKConfig.BaseHref + url ;
Now after you upload/browse for a file it should include your basehref in the file path.
Re: BaseHref - Does it work?
This worked although I used