That did the trick thank you!

rtb1.setHTML(rtb2.getHTML());



On Sep 10, 10:14 am, "Ian Bambury" <[EMAIL PROTECTED]> wrote:
> If you transfer the HTML, does that not work?
>
> If you transfer the text, you're going to get text at the other end.
>
> 2008/9/10 ALF <[EMAIL PROTECTED]>
>
>
>
> > final RichTextArea rtb1 = new RichTextArea();
> > final RichTextArea rtb2 = new RichTextArea();
>
> > If you have two RichTextBoxes displayed and you enter rich text into
> > one box then click a button to transfer that text to the other
> > RichTextBox it loses it's richness.
>
> > rtb1.setText(rtb2.getText());
>
> > Is it possible to retain the formatting?
>
> --
> Ian
>
> http://examples.roughian.com
>
> 2B or not 2B,
> that is FF
>
> =========================================================================== 
> ==============
> Internet communications are not secure and therefore I will not accept legal
> responsibility for the contents of this message.
> Any views or opinions do not necessarily represent what I really think
> unless otherwise specifically stated, and even then, I
> might still be lying. This message may contain confidential privileged
> information, but if it does, I've nicked it from someone
> else. If you have received this email in error then tough, hit delete, and
> don't bother me about it, I really don't care. Batteries
> not included. Contents can go up as well as down. Shares can vary in size.
> May cause drowsiness, if affected, go to sleep.
> =========================================================================== 
> ==============
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to