 import mx.utils.ObjectUtil;
 import mx.utils.StringUtil;
 
-import spark.components.TextSelectionHighlighting;
+import spark.components.supportClasses.RichEditableTextContainerManager;
+import spark.components.supportClasses.RichEditableTextEditManager;
 import spark.core.CSSTextLayoutFormat;
 import spark.core.IViewport;
 import spark.core.NavigationUnit;
 import spark.events.TextOperationEvent;
-import spark.components.supportClasses.RichEditableTextContainerManager;
-import spark.components.supportClasses.RichEditableTextEditManager;
 import spark.utils.TextUtil;
 
 use namespace mx_internal;

            if (editingMode != EditingMode.READ_ONLY)
            {
                // Must preserve the selection, if there was one.
                selectionManager = getSelectionManager();
                
                // The visible selection will be refreshed during the update.
                selectionManager.selectRange(oldAnchorPosition, oldActivePosition);        

            // Otherwise the StringTextLineFactory will put
            // all of the lines into a single paragraph
            // and FTE performance will degrade on a large paragraph.
            if (_text.indexOf("\n") != -1 || _text.indexOf("\r") != -1)
            {
                _textFlow = staticPlainTextImporter.importToFlow(_text);
                _textContainerManager.setTextFlow(_textFlow);
