I'm building a text editor within a larger web application where a user can edit a TextArea and format the text any way they want, on a character by character basis, if that user desired. It's for that reason that I need to use setFormatOfRange. However I'm running into a stumbling block with that function. Additionally, the user can double click the box to edit the actual text in a possibly more readable popup interface. For example, this would be useful if a user has a small text box with even smaller text that can be barely readable on the screen (for example a disclaimer). Bringing up this text box will allow the reader to edit the text in a readable manner without changing the formatting of the box. At least, in theory. After I reset the original box's text with the new text, it reverts back to the original formatting that was not set by setFormatOfRange. The code that I'm using is complex, but I have an example that shows exactly what I'm talking about, and a decent representation of how I will be using setFormatOfRange.
public function formatTest():void
var newStyleObj:TextLayoutFormat = new TextLayoutFormat();
newStyleObj.fontSize = 20;