         super();
 
         _content = textFlow = createEmptyTextFlow();
+
+        mx_internal::undoManager.undoAndRedoItemLimit = int.MAX_VALUE;
+            
+        addEventListener(FocusEvent.FOCUS_OUT, focusOutHandler);
     }
     
     //--------------------------------------------------------------------------


    //--------------------------------------------------------------------------
    //
    //  Event handlers
    //
    //--------------------------------------------------------------------------

import flashx.textLayout.conversion.ConversionType;
import flashx.textLayout.edit.EditManager;
import flashx.textLayout.edit.ISelectionManager;
import flashx.textLayout.edit.IUndoManager;
import flashx.textLayout.edit.SelectionFormat;
import flashx.textLayout.edit.UndoManager;
import flashx.textLayout.elements.Configuration;
import flashx.textLayout.elements.FlowElement;
import flashx.textLayout.elements.ParagraphElement;
