Hello,
I'm running FCKEditor on a classic ASP website.
The problem I'm having might be a simple one, but I just can't figure it out.
When I insert an image into my post from "Image Dialogue" box that pops-up, the preview window works, everything is spotless.
The problem comes when I try to edit/update an already inserted image. When I right-click on the image and go to "Image Properties" OR just click on the image and press the Image button on FCK, the already inserted image's URL is not there, the preview box doesn't contain an image, basically ... the Image Dialogue box is not picking up the already inserted image.
The fck_image.js file has a function:
window.onload=function(){
.....
LoadSelection();
......
}
Which means the function LoadSelection is being called automatically on each time the Image Dialogue box window is loaded. This obviously wasn't working so I tried manually calling the function on fck_image.asp:
<body onload="LoadSelection();">
.....
This worked on the first try but when I uploaded the files and cleared my cache and tried again it didn't work.
What could be the reason that LoadSelection might not be picking up the image???
Thanks
Tue, 07/22/2008 - 12:35
#1
Re: Problem with updating an image
I have managed to fix the problem by commenting out the call to function LoadSelection() in fck_image.js and then I added a custom javascript to fck_image.asp on <body onload="initPage();"> tag:

function initPage(){
LoadSelection();
setText();
UpdatePreview();
}
and it magically worked lol