TextScrap missing formatting
With the last weekly build, we needed to switch from:
var textScrap:TextScrap = textFlow.interactionManager.createTextScrap();
var sTxt:String = String(TextFilter.export(textScrap.textFlow, TextFilter.TEXT_LAYOUT_FORMAT, ConversionType.STRING_TYPE));
to:
var textScrap:TextScrap = TextScrap.createTextScrap( textFlow.interactionManager.getSelectionState() );
var newTextFlow:TextFlow = new TextFlow();
newTextFlow.interactionManager = new EditManager();
EditManager(newTextFlow.interactionManager).pasteTextScrap( textScrap , new SelectionState(newTextFlow,0,0) );
var sTxt:String = String(TextFilter.export( newTextFlow, TextFilter.TEXT_LAYOUT_FORMAT, ConversionType.STRING_TYPE));
However, now my formatting is missing (fontFamily, textAlign, etc.). What is the best way to populate the formatting from the selection to the TextScrap?
