Copy RTF into clipboard

G

galactic

Hello,

Does anyone know how to tell the cipboard to accept RTF into the
clipboard? I think I have all the steps but one.. has anyone done
this:

1. copied text into a separate area.
2. reformatted text into rtf format.
2. copied.holdtext.createTextRange();
3 . copied.execCommand("copy"); (only for ie)

but when I paste it still comes out as pure text.. not RTF... what am
I missing.

any help would be appreciated.

-Galactic
 
E

Evertjan.

galactic wrote on 15 mrt 2010 in comp.lang.javascript:
Hello,

Does anyone know how to tell the cipboard to accept RTF into the
clipboard? I think I have all the steps but one.. has anyone done
this:

1. copied text into a separate area.
2. reformatted text into rtf format.
2. copied.holdtext.createTextRange();

A textrange is for text, meseems.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,989
Messages
2,570,207
Members
46,782
Latest member
ThomasGex

Latest Threads

Top