I have developed a CMS based on Drupal 6.0 with various core and community modules. One of the modules is FCKEditor with (IMCE) which works very well.

I got a strange request from the customer who will create articles on this CMS and I dont know how I can do that? He is satisfied with how he can create new articles from the admin panel using FCKEditor right now. All he wants is that while creating the articles he puts in a lot of images and smileys, images and smileys that are usually purchased from registered sites; After purchasing he has to manually upload the pictures to the site using FCKEditor module IMCE, what he wants is that he should be able to put images directly from another domain lets say we have an image at htt://www.somedomain.com/someimage.jpg he will copy the image from the browser and paste it directly in to FCKEditor, which also means that FCKEditor will not store the image on the site domain but will create a link which will point to htt://www.somedomain.com/someimage.jpg. After saving his article all the images, smileys and pictures should be parsed and if they are not from the local site domain then they must be downloaded first to a fixed directory in local site domain and then the links to images that are on foreign domain should be converted to the local site domain ie. if he saves an article that has:

some text some text some text htt://www.somedomain.com/someimage.jpg some text

->this should be tackled by Drupal, it will download and put the images from the other domain to a fixed folder in the local site domain and this is what will be saved in the database:

some text some text some text htt://www.localdomain.com/somefolder/someimage.jpg some text

I know that it sound crazy and obviously the question is why would you take all that trouble when you have IMCE for FCKEditor installed and working, but if its possible then it will be great help guys! I would also appreciate if anyone has done something like this and can shed some light on this.

Thanx in advance,