spark textarea : enter key split paragraph
I'm new in this forum so hi everybody !
I have a question about the spark textarea and TLF. I try to do an editor (like wysiwyg but more simpler) and I have a problem :
When I type for example :
------
test line 1
test line 2
-------
the enter key split the paragraphs. I can see it when I do
TextConverter.export(editor.textFlow,TextConverter.TEXT_LAYOUT_FORMAT, ConversionType.STRING_TYPE).toString();
It returns
"<p><span>test line 1</span></p><p><span>test line 2</span></p>" instead <p><span>test line 1<br/>test line 2</span></p>
I tried to set a configuration for the textflow of the textarea like this :
var config:Configuration = TextFlow.defaultConfiguration;
config.manageEnterKey = false;
editor.textDisplay.textFlow = new TextFlow(config);
I used this to stop the splitting but nothing happens. When I try the exportation with TextConverter, it return the same thing :
<p><span>test line 1</span></p><p><span>test line 2</span></p>
Is it possible to have br tag or no ?
Thanks in advance ^^
