When copy & paste some news contains images from external web sites. Can FCKEditor upload these images to local server automaticly? That means it can upload the image "http://www.externalsites.com/xyz.jpg" to local server automaticly and change the image link in the saved content to local relative links.
I mean for the JSP project using FCKEditor. If the functionality is already there, how can we config it?
Thanks!
Min
I mean for the JSP project using FCKEditor. If the functionality is already there, how can we config it?
Thanks!
Min
Re: Auto upload remote sites' images to server?
Subscribing.
We have intranet website, our employees have limited access to the Internet. When a content manager posts news from external source via copy-paste, images are not uploaded automatically. We need this feature!
Re: Auto upload remote sites' images to server?
Here's a quick function in
Here's a quick function in php that does the trick. Sorry. I wrote this thing in a lost hour so there's no warranty and it may contain bugs or security issues. Comments are welcome.
Usage: $html = process_remote_images($html);
Considering that $html contains the response from CK Editor. That's all there is to is. Note that this string possibly needs to be stripslashed (depending on your php settings) and be addslashed again if you want to insert it in a sql database.
Hello,
Hello,
Thanks chimit for this solution. I've tried and it works perfectly.
AnnaD