Using version 2.6.3 with ColdFusion. When I upload a new image through the "Image Properties" pop-up window, everything works correctly except that the URL for the image is http:/www.mywebsite.com/UserFiles/Image/myfile.jpg instead of http://www.mywebsite.com/UserFiles/Image/myfile.jpg. This is causing the "broken image" symbol to appear on the page rather than the image itself. This is easily corrected by adding the other slash into the URL, but I cannot find where to fix this within FCKeditor.
Any help you can provide would be greatly appreciated!
Tue, 01/06/2009 - 22:02
#1
Re: Upload Image Problem, http:/ instead of http://
I'm still having this problem and am still hoping that someone (anyone) might have some info that might help me. Pretty please
Re: Upload Image Problem, http:/ instead of http://
While this is not the ideal solution, I was able to fix the problem with the URL on the image upload process. In order to get around this problem, I changed the SetURL() function in the \editor\dialog\fck_image\fck_image.js file. Here is the new function I used...
function SetUrl( url, width, height, alt )
{
if ( sActualBrowser == 'Link' )
{
GetE('txtLnkUrl').value = url ;
UpdatePreview() ;
}
else
{
if(url.substr(0,7) != "http://")
{
url = "http://" + url.substr(6,url.length-6);
//alert(url);
}
GetE('txtUrl').value = url ;
GetE('txtWidth').value = width ? width : '' ;
GetE('txtHeight').value = height ? height : '' ;
if ( alt )
GetE('txtAlt').value = alt;
UpdatePreview() ;
UpdateOriginal( true ) ;
}
dialog.SetSelectedTab( 'Info' ) ;
}
Re: Upload Image Problem, http:/ instead of http://
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+