 import flashx.textLayout.container.ContainerController;
 import flashx.textLayout.container.TextContainerManager;
 import flashx.textLayout.edit.EditingMode;
+import flashx.textLayout.edit.ElementRange;
 import flashx.textLayout.edit.IEditManager;
 import flashx.textLayout.edit.ISelectionManager;
 import flashx.textLayout.edit.SelectionFormat;
+import flashx.textLayout.edit.SelectionManager;
+import flashx.textLayout.edit.SelectionState;
+import flashx.textLayout.elements.FlowLeafElement;
 import flashx.textLayout.elements.IConfiguration;
+import flashx.textLayout.elements.ParagraphElement;
 import flashx.textLayout.elements.TextFlow;
+import flashx.textLayout.events.SelectionEvent;
+import flashx.textLayout.formats.Category;
+import flashx.textLayout.formats.ITextLayoutFormat;
+import flashx.textLayout.formats.TextLayoutFormat;
+import flashx.textLayout.operations.ApplyFormatOperation;
+import flashx.textLayout.operations.InsertTextOperation;
+import flashx.textLayout.property.Property;
 import flashx.textLayout.tlf_internal;
 import flashx.undo.IUndoManager;
 import flashx.undo.UndoManager;

    
    /**
     *  @private
     */
    override public function focusInHandler(event:FocusEvent):void
    {

        textDisplay.systemManager.getSandboxRoot().removeEventListener(SandboxMouseEvent.MOUSE_MOVE_SOMEWHERE, mouseMoveSomewhereHandler);
    }

    //--------------------------------------------------------------------------
    //
    //  Event handlers
    //
    //--------------------------------------------------------------------------
    
    private function mouseUpSomewhereHandler(event:Event):void
    {
        mouseUpSomewhere(event);
