Split and Merge Paragraphs
When I split and merge a paragraph a line break is inserted. Does anyone know a way around this. (Simply deleting the last character seems inelegant and, more importantly, prone to failure). Here's the code:
var textFlow:TextFlow = TextConverter.importToFlow(
"Hello World",
TextConverter.PLAIN_TEXT_FORMAT);
textFlow.interactionManager = new EditManager();
var textFlow2:TextFlow = textFlow.splitAtPosition(5) as TextFlow;
textFlow2.interactionManager = new EditManager();
textFlow.mxmlChildren = textFlow.mxmlChildren.concat(textFlow2.mxmlChildren);
trace(textFlow.getText()); // returns "Hello\n World"
- Daniel Freiman
