         // Switch to the EditManager.
         var priorEditingMode:String = editingMode;
         editingMode = EditingMode.READ_WRITE;
-        var selectionManager:SelectionManager = getSelectionManager();
+        var selectionManager:ISelectionManager = getSelectionManager();
                 
         // This internal TLF object maps the names of format properties
         // to Property instances.

    private function inputManager_selectionChangeHandler(
                        event:SelectionEvent):void
    {
        var selectionManager:SelectionManager = getSelectionManager();

        _selectionAnchorPosition = selectionManager.anchorPosition;
        _selectionActivePosition = selectionManager.activePosition;
        
        //trace("selectionChangeHandler", _selectionAnchorPosition, _selectionActivePosition);
            
        dispatchEvent(new FlexEvent(FlexEvent.SELECTION_CHANGE));

     *  @private
     */
    mx_internal var clearUndoOnFocusOut:Boolean = true;

    /**
     *  @private
