1 Reply Latest reply on Dec 26, 2011 11:12 PM by Raja Jaganathan
      • 1. Re: How to hide/disable copy/paste option in context menu on spark TextArea in Adobe AIR?
        Raja Jaganathan Level 1

        Just try with this

         

        protected function editor_rightMouseDownHandler(event:MouseEvent):void

                                      {

                                                if((editor.textDisplay as RichEditableText) != null && (editor.textDisplay as RichEditableText).contextMenu != null)

                                                {

                                                          ((editor.textDisplay as RichEditableText).contextMenu as ContextMenu).hideBuiltInItems();

                                                          ((editor.textDisplay as RichEditableText).contextMenu as ContextMenu).clipboardMenu = false;

                                                }

                                      }

         

         

                                      protected function editor_copyHandler(event:Event):void

                                      {

                                                event.preventDefault();

                                                System.setClipboard("");

                                                Clipboard.generalClipboard.clear();

                                      }