我期待只需以下文本追加到現有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?