1
我想在Spark TextArea中輸入選項卡,我發現的唯一示例是針對mx TextArea。如何在Spark Textarea中允許選項卡?
下面是我從建議使用使用manageTabKey
測試數據:
var config:Configuration = new Configuration();
var parser:ITextImporter;
config.manageTabKey = true;
parser = TextConverter.getImporter(TextConverter.PLAIN_TEXT_FORMAT, config);
textarea.textFlow = parser.importToFlow("test data");
MXML:
<s:TextArea id="textarea" width="100%" height="100%">
</s:TextArea>
這似乎是隻讀屬性。 –
我已經嘗試了下面的方法沒有效果:'\t var config:Configuration = new Configuration(); \t var parser:ITextImporter; \t \t config.manageTabKey = true; \t parser = TextConverter.getImporter(TextConverter.PLAIN_TEXT_FORMAT,config); \t \t textarea.textFlow = parser.importToFlow(「test」);' –
您使用的是什麼彈性版本?我已經在4.6.0中測試過它,它的功能就像一個魅力。 –