我希望将以下文本简单地附加到现有spark.components.TextArea
的文本流中:
<b>something</b>: hello world
我尝试使用以下代码执行此操作,但没有任何反应:
this.textarea.textFlow.addChild(TextConverter.importToFlow(
"<b>something</b>: hello world",
TextConverter.TEXT_FIELD_HTML_FORMAT));
我怎样才能做到这一点?我知道在旧mx.controls.TextArea
组件中,我可以简单地做:
this.textarea.htmlText += "<b>something</b>: hello world";
如何使用spark.components.TextArea
组件中表达的新 TLF/FTE API 执行此操作?