By default, the undo history is cleared when the RichEditableText component in the TextArea skin loses focus.
I see in RichEditableText there is a backdoor to change this behavior:
mx_internal var clearUndoOnFocusOut:Boolean = true;
so you should be able to add
use namespace mx_internal;
and this to function comp
RichEditableText(txt1.textDisplay).clearUndoOnFocusOut = false;
to get the behavior you want.
It doesn't work in a mobile application ?
The default TextArea for a mobile application isn't using RichEditableText. Your example showed a textFlow so I was assuming you were using RichEditableText and TLF.
1 person found this helpful
I created my own class because mobile TextArea doesn't support undoManager class.
Try s:RichEditableText control, UndoManager work fine for it.