 import flashx.textLayout.edit.UndoManager;
 import flashx.textLayout.elements.Configuration;
 import flashx.textLayout.elements.FlowElement;
+import flashx.textLayout.elements.ITextLineCreator;
 import flashx.textLayout.elements.ParagraphElement;
 import flashx.textLayout.elements.SpanElement;
 import flashx.textLayout.elements.TextFlow;
+import flashx.textLayout.elements.TextLineCreator;
 import flashx.textLayout.events.CompositionCompletionEvent;
 import flashx.textLayout.events.DamageEvent;
 import flashx.textLayout.events.FlowOperationEvent;

        EditManager(textFlow.interactionManager).insertText(text);

        // Update TLF display.  This initiates the InsertTextOperation.
        textFlow.flowComposer.updateAllContainers();        

        // Restore the prior editing mode.
        switchToEditingMode(textFlow, priorEditingMode);


import spark.core.IViewport;
import spark.core.ScrollUnit;
import mx.core.EmbeddedFont;
import mx.core.EmbeddedFontRegistry;
import mx.core.IEmbeddedFontRegistry;
import mx.core.IFlexModuleFactory;
import mx.core.IFontContextComponent;
import mx.core.IUIComponent;
import mx.core.Singleton;
import mx.core.UIComponent;
import mx.core.mx_internal;
import mx.managers.ISystemManager;
import mx.events.FlexEvent;
import spark.events.TextOperationEvent;
import mx.utils.StringUtil;
