PHP and Input Box
Moderator: General Moderators
PHP and Input Box
I'm trying to create a input box to let the user cut and paste text, graphics, etc... Could someone tells me is there anything out there? Please post some tips. Thanks... 
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
pasting graphics.. exactly what form of "pasting" are we talking here? Like I copied an image from my machine and I paste it, thus showing the image? That I know of, that's not exactly possible. The problem is, how does the clipboard know what to give you? The location of the image? The image data itself? That's pretty browser and system specific... Text is far easier.
Now, if you wanted instead dragging and dropping an image onto the page, that may be possible, at least in IE.
It sounds like you are making an RTE.
Now, if you wanted instead dragging and dropping an image onto the page, that may be possible, at least in IE.
It sounds like you are making an RTE.
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
I'm not aware of any way, because as I said, the browser (at the least) would have to know how to paste it into the browser. Since it's a screen capture, the raw image data is stored in the clipboard. An ActiveX could act as a helping agent to mitigate the translation, an extension with Firefox would also be needed if you wanted compatibility, I'd imagine. Firefox, by itself has no idea how to paste such a context.