Image Dialog Options
(Revised: 04/10/2003)
The new image dialog box has been implemented. There are two new useful options
that this document will discuss: image file upload and image repository
browsing.
Image File Upload
The editor doesn’t manage the effective file upload system. It is limited to
the editing system. But it can talk to a user custom file upload system. In
this way, the end user (developer) can control and decide what is the better
solution for it’s needs. Someone will save it on the file system. Other in the
database. And another developer need to perform some image manipulations after
the upload is completed. The preferred language is another big problem. So we
let you decide what is the better way to manage it.
In any case, some sample working solutions can be found at /FCKeditor_dir/_filemanager/upload.
Attention: all these samples use the folder “/UserImages/” of
your web site to save the uploaded files. So be sure that you have the right
security rights set.
If you want to implement your custom one pay attention to these instructions:
The posted file is named “FCKeditor_File ”. So use this name to
process the request.
After you have processed the file, write in the browser something like this:
<SCRIPT language=javascript>
window.opener.setImage('" + sFileURL + "') ;
window.close() ;
</SCRIPT>
This will set the new image in the image dialog box and close your custom page.
You can set the desired upload page in the fck_config.js file.
Other upload options are also set there.
Only JPG, GIF and PNG
files are allowed.
Warning: the Image Upload feature is not working over
IE 5.0 (FCKeditor version
0.9.4 beta).
Image Repository Browsing
Like the image upload process, the editor doesn’t manage files on the server. But
in the same way you can define a custom web page to do that work. You can find
some samples at /FCKeditor_dir/_filemanager/browse .
If you want to implement your custom browser pay attention to these
instructions:
After the user selected the file, write in the browser something like this:
<SCRIPT language=javascript>
window.setImage('" + sFileURL + "') ;
window.close() ;
</SCRIPT>
This will set the new image in the image dialog box and close your custom page.
You can set the desired browsing page in the fck_config.js file. Other image
browser options are also set
there.