 import flash.ui.ContextMenu;
 import flash.ui.Keyboard;
 
+import mx.core.mx_internal;
+import mx.events.SandboxMouseEvent;
+import mx.styles.IStyleClient;
+
+import spark.components.RichEditableText;
+import spark.components.TextSelectionHighlighting;
+
+import flashx.textLayout.tlf_internal;
 import flashx.textLayout.container.ContainerController;
 import flashx.textLayout.container.TextContainerManager;
 import flashx.textLayout.edit.EditManager;

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;

import mx.core.mx_internal;
import mx.events.SandboxMouseEvent;
import mx.styles.IStyleClient;

import spark.components.RichEditableText;
import spark.components.TextSelectionHighlighting;

use namespace mx_internal;
use namespace tlf_internal;

        var inactiveSelectionColor:* = textDisplay.getStyle(
                                            "inactiveTextSelectionColor"); 

        var inactivePointAlpha:Number = 0.0;
        
        var inactiveRangeAlpha:Number =
            textDisplay.selectionHighlighting == 
            TextSelectionHighlighting.ALWAYS ?
            1.0 :
            0.0;

        
        // This doesn't really matter since inactivePointAlpha is 0.
        var pointBlinkRate:Number = 0.0;
        
        return new SelectionFormat(
            inactiveSelectionColor, inactiveRangeAlpha, BlendMode.NORMAL,
            inactiveSelectionColor, inactivePointAlpha, BlendMode.INVERT,
            pointBlinkRate);
    }   
    
    /**
