How to read textline formatting
I want to get the formatting applied on the selected line or words in a paragraph display under TextFlow controller. I am able to read the textline from a selected paragraph as I am using TextFlowLine class to read the textline. This feature is only rendering me the plain text of the selected line instead of applied formatting on it. Find below the reference code:
var textFlowLine:TextFlowLine;
var startTextFlowLineIndex:int = objArr[0].txtFlow.flowComposer.findLineIndexAtPosition(begin);
textFlowLine = objArr[0].txtFlow.flowComposer.getLineAt(startTextFlowLineIndex);
// Read & Get plain text
text=textFlowLine.getTextLine().textBlock.content.text.substring((begin-textFlowLine.paragraph.getAbsoluteStart()),(end-textFlowLine.paragraph.getAbsoluteStart()));
Is anyone has any idea? How can I achieve the same?
