 
     /**
      *  @private
+     *  Called when a FocusManager is added to an IFocusManagerContainer.
+     *  We need to check that it belongs
+     *  to us before listening to it.
+     *  Because we listen to sandboxroot, you cannot assume the type of
+     *  the event.
+     */
+    private function addFocusManagerHandler(event:Event):void
+    {
+        if (focusManager == event.target["focusManager"])
+        {
+            systemManager.getSandboxRoot().removeEventListener(FlexEvent.ADD_FOCUS_MANAGER, 
+                    addFocusManagerHandler, true)
+            focusManager.addEventListener(FlexEvent.FLEX_WINDOW_ACTIVATE, 
+                _textContainerManager.activateHandler, false, 0, true)
+            focusManager.addEventListener(FlexEvent.FLEX_WINDOW_DEACTIVATE, 
+                _textContainerManager.deactivateHandler, false, 0, true)
+        }
+    }
+
+    /**
+     *  @private
      *  RichEditableTextContainerManager overrides focusInHandler and calls
      *  this before executing it's own focusInHandler.
      * 

    //  Methods: UIComponent
    //
    //--------------------------------------------------------------------------

    /**
     *  @private


        _textContainerManager.editingMode = value;
    }


    //----------------------------------
    //  heightInLines
