5 Replies Latest reply on Mar 15, 2012 10:55 PM by Patel Bharat

    UndoManager doesn't work when TextArea focusOut

    pol2095 Level 1



      UndoManager no longer works when the textArea focusOut and I return in the textarea, the history is erased.


      <!-- Simple example to demonstrate the Spark List component -->
      <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" width="260" height="480">
                import flashx.textLayout.edit.EditManager;
                import flashx.undo.UndoManager;
                public function comp (e:Event):void{
                          var undoManager:UndoManager = new UndoManager();
                          var editManager:EditManager = new EditManager(undoManager);
                          txt1.textFlow.interactionManager = editManager;
                <s:Panel title="undo" width="240" height="460" horizontalCenter="0" verticalCenter="0">
                                    <s:TextArea id="txt1" width="200" height="50"
                  horizontalCenter="0" verticalCenter="0" />
                                    <s:Button label="focusOut"/>