Where do you want to paste it/what do you want to do with it?
If you paste it into an element that has the attribute contentEditable
set to true,
it will paste HTML formatting as well.
Then use element.innerHTML to save the value in a variable or something
similar.
/Robert
-----Ursprungligt meddelande-----
Fr=E5n: James [mailto:jimbo363534@y...]
Skickat: den 19 november 2002 16:48
Till: javascript
=C4mne: [javascript] how to grab MS-WORD formatted from clipboard in js?
I want the HTML from user who copies from MS-WORD into clipboard. I know
clipboardData object has clipboardData.getData(), and you can put
in "text" or "url" as first parameter, but, it always fetches non-HTML
text. Anyone know how to fetch the HTML clipboard copy from MS-WORD in
javascript??