我期待只需以下文本追加到现有spark.components.TextArea
的文本流:将流程追加到现有的TextFlow?
<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?