             // 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)

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

import mx.core.IEmbeddedFontRegistry;

        if (editingMode != EditingMode.READ_WRITE)
            editingMode = EditingMode.READ_WRITE;
        
        var editManager:IEditManager =
            EditManager(_textContainerManager.beginInteraction());
            
        // Combine all the edits from one API call into one operation so it 
        // can be undone as a single operation.  It will also prevent this from
        // possibibly being combined with the last operation.
        editManager.beginCompositeOperation(); 
        
        return editManager;           
    }

    /**
