     /**
      *  @private
      */
+    override tlf_internal function getContextMenu():ContextMenu
+    {
+        // Do not call textDisplay.contextMenu if the context menu is not
+        // set since it calls this function to get the default context menu
+        // from the text container manager.
+        
+        if (!textDisplay.contextMenuSet)
+            return super.getContextMenu();
+        
+        return textDisplay.contextMenu;
+    }
+    
+    /**
+     *  @private
+     */
     override protected function getUndoManager():IUndoManager
     {
         if (!textDisplay.undoManager)

                    anchorPosition : activePosition;
    }
    
    //--------------------------------------------------------------------------
    //
    //  Overridden event handlers


import flash.display.BlendMode;
import flash.display.Graphics;
import flash.events.ContextMenuEvent;
import flash.events.Event;
import flash.events.FocusEvent;
import flash.events.KeyboardEvent;
import flash.events.MouseEvent;
import flash.geom.Rectangle;
import flash.ui.ContextMenu;
import flash.ui.Keyboard;

import flashx.textLayout.container.ContainerController;
