     private function inputManager_selectionChangeHandler(
                         event:SelectionEvent):void
     {
+        var oldAnchor:int = _selectionAnchorPosition;
+        var oldActive:int = _selectionActivePosition;
+        
         var selectionManager:ISelectionManager = getSelectionManager();
         
         _selectionAnchorPosition = selectionManager.anchorPosition;

    public function setSelection(anchorPosition:int = 0,
                                 activePosition:int = int.MAX_VALUE):void
    {
        if (editingMode == EditingMode.READ_ONLY)
        {
            editingMode = EditingMode.READ_SELECT;
            _selectable = true;
        }

		var selectionManager:ISelectionManager = getSelectionManager();
        
        selectionManager.setSelection(anchorPosition, activePosition);        

        
        // Remove terminator on the last paragraph, ie remove the last char.
        // t true implies length > 0.
        if (t != null && t.length > 0 && t.charAt(t.length-1) == "\n")
            t = t.slice(0, -1);
            
        return t;            
