Break stack undo in RichEditableText when I make one or more operations ApplyFormatOperation sequentially
I found a bug with undo when I make one or more operations ApplyFormatOperation sequentially. this breaks the stack of undo, not undoing the other operations when press control-z, or call undo();
<s:RichEditableText width="500" height="500" content="Lorem ipsum dolor sit amet" id="rt" />
function applyFormat(){
var textLayoutFormat:TextLayoutFormat = new TextLayoutFormat();
textLayoutFormat.fontSize = 20;
textLayoutFormat.color = 0xFF0000;
rt.setFormatOfRange(textLayoutFormat);
}
applyFormat();
//Then after I select another part of the text and call again
applyFormat(); //or more
OR
function applyFormat(){
var cf:TextLayoutFormat = new TextLayoutFormat();
cf.fontSize = 20;
IEditManager( rt.textFlow.interactionManager ).applyLeafFormat(cf);
}
applyFormat();
//Then after I select another part of the text and call again
applyFormat(); //or more
