[kupu-dev] Paste image from msword

Diego Municio dmunicio at gmail.com
Thu Mar 1 13:44:23 CET 2007


I want to paste images form msword and then kupu automatically upload them.
I have read the following post in the mailing list archives:

--

>* Is it even possible with Javascript to paste an image?
*
Not so far as I know. If the image doesn't exist on the server, I don't
think Javascript has any way to get hold of the image data and create an
object on the server.

>*
*>* I know that Kupu doesn't do this now, but I am trying to get my
*>* coworkers to use Kupu instead of Microsoft Word. They are used to taking
*>* screenshots and just pasting them into the user guides they create.
*
You can copy/paste an image from IE, but it copies the original image tag
and that isn't usually what you wanted. I'm not sure what FF does: it will
happily offer the paste menu option after you've copied an image but
nothing gets pasted.

--

But I would like to know your opinion about this workaround:

It's clear that an upload is currenly working.
I would create a <form> which gets filled with all src's from <img
src="file:\\\..."> tags pasted
Add an onpaste event which calls:
- my fill_form function
- my_form.submit
- and fixes srcs in <img src> tags to point to the new plone images.

I am not a javascript guru, but I don't see it impossible so please
correct me if I am saying nonsenses
before I started to write code.

I think that it would be a nice feature!

Thanks for your helping,

Diego Municio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://codespeak.net/pipermail/kupu-dev/attachments/20070301/e0784745/attachment.htm 


More information about the kupu-dev mailing list