hello, I have a form that uses Richtexteditor of Flex3 to write in their reply. The reply is then posted to a textarea, where all of the formatting is lost! I have embedded the font since I was doing some tweeening on the text boxes. I need to find out how keep the formatting intact in the textarea from richtexteditor! has anybody an idea?
A:
Make sure that you set the htmlText property on the TextArea, not just text.
Josh Knauer
2010-04-13 17:11:28
thank josh, but i dont get it, what I dont have any htmltext, I just have normal text is being typed into Richtexteditor, and then later I take its contents and write them to a TextArea, but during the process formatting is lost! :(
Ali Syed
2010-04-13 17:27:36
.text returns the contents without any html markup included. .htmlText returns the contents with html mark up. Try out htmlText to see what I mean.
Josh Knauer
2010-04-13 17:43:36
thanks a lotttttt man! that really helped! but now I have problem with embedding! if I don't embed the text wont "appear" with the panel. If i do embed the text then the text wont appear at all!
Ali Syed
2010-04-13 17:58:23
You'll have to be a little more specific. I'm not sure what you mean by "embedding". Maybe update your question with some sample code?
Josh Knauer
2010-04-13 18:18:28
So.. here goes:if i comment out this line://this.body.setStyle("fontFamily" , "regularFont");then the showeffect doesn't apply to the font! it appears in perfect formatting but it doesn't fade in with the rest of the TextArea! it just appears!
Ali Syed
2010-04-13 18:28:20
body being the textArea
Ali Syed
2010-04-13 18:35:52
Sorry Ali, I'm still not sure what you mean. You have a different problem with animation and fonts? Maybe start another question with more code?
Josh Knauer
2010-04-13 20:26:41
ok I will thank you so very much! cheers! I hereby pronounce this thread dead :P
Ali Syed
2010-04-13 21:32:05