Pregunta

If setting the htmlText property on an mx TextArea the text property stays 'null' until the TextArea is manually edited. Is there a way of updating the text property as soon as the htmlText property is set?

e.g.

textArea.htmlText = str; trace(textArea.text)

result = null

Many thanks, Adam

¿Fue útil?

Solución

By calling validateNow() on the textArea after setting the htmlText property you can force the text property to be updated instantly.

e.g.

textArea.htmlText = str;
textArea.validateNow();
trace(textArea.text);

result = HtmlToText( str );
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top