The preview image did not display correctly when I set the BaseHref for my editor. I solved this problem by making changes in the following files:
fck_image.html
<!-- added to show preview images correctly -->
<base href="" id="imgBase"/>
</head>
and
fck_image.js in window.onload function
// added by pboysen@iastate.edu
// May 2, 2005
GetE('imgBase').href = FCKConfig.BaseHref;
fck_image.html
<!-- added to show preview images correctly -->
<base href="" id="imgBase"/>
</head>
and
fck_image.js in window.onload function
// added by pboysen@iastate.edu
// May 2, 2005
GetE('imgBase').href = FCKConfig.BaseHref;
RE: BaseHref and Image Preview-Revisited
The following solution works in both. Edit fck_image.js
and change the first line of the function UpdateImage to
e.src = FCKConfig.BaseHref + GetE('txtUrl').value ;
RE: BaseHref and Image Preview
if (e == GetE('imgPreview'))
e.src = FCKConfig.BaseHref + GetE('txtUrl').value ;
else
e.src = GetE('txtUrl').value;