Hi all.

Could you please help me with following problem:
If I need to copy some article from another web site, I can just copy it to clipboard and then paste into CKEditor - it's great and straightforward enough for the user.
The only problem here is that images are still referring to original site - and it's no good, since hot links are discouraged. The question is, how could I deal with it?

The "brute force" solution would be to save all images locally and then upload/insert them in the CKEditor. But it's extremely inconvenient, and in if there are 10-15 images in the article - it becomes a total nightmare. No user will do this.

So I suppose it should be some automated solurion, which will do the following:

1) Parse HTML and find all Only local images are allowed. tags with non-local source
2) Upload all images mentioned in these tags
3) Change the tags appropriately to reference local copy of the image

Actually, I'm not sure whether it should be a part of CKEditor module or maybe just Input filter.

Anyway, maybe there is some common solution for this problem? Probably someone already dealt with it?
Just don't want to reinvent the wheel...

Thanks!

Comments

wwalc’s picture

Status: Active » Closed (won't fix)

Although I understand the idea, I don't think it may have anything to do with CKEditor module.
I guess this could be done by a special filter, but for me it looks like a bit complicated task.