Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Copy RTF into clipboard

0 views
Skip to first unread message

galactic

unread,
Mar 15, 2010, 2:20:19 PM3/15/10
to
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

Evertjan.

unread,
Mar 15, 2010, 8:01:05 PM3/15/10
to
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.

> 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
>

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

0 new messages