      */
     private function releaseEditManager():void
     {
+        EditManager(textFlow.interactionManager).endCompositeOperation();
+                    
         _textContainerManager.endInteraction();
 
         editingMode = priorEditingMode;

import flashx.textLayout.operations.InsertTextOperation;
import flashx.textLayout.operations.PasteOperation;
import flashx.textLayout.tlf_internal;
import flashx.undo.IUndoManager;

import mx.core.IEmbeddedFontRegistry;

            // the fontLookup format is set to either
            // "device" or "embedded" depending on whether
            // embeddedFontContext is null or non-null.
            
            if (hasEventListener("styleChanged"))
                dispatchEvent(new Event("styleChanged"));
        }
        
        if (selectionFormatsChanged)
