You found a bug! We've classified it as EXTJS-9521 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha User
    Join Date
    Jun 2012
    Posts
    48
    Vote Rating
    0
    mandardadpe is on a distinguished road

      0  

    Default Extjs 4.0 How to prevent system right click menu forever for htmleditor?

    Extjs 4.0 How to prevent system right click menu forever for htmleditor?


    Hi,
    I am using htmleditor and want to add right click menu in it. I am able to get context menu, but it doesn't long beyond 1 min . Please tell how can I show it forever.

    Below is code used:

    var myHandler = function(e){
    x = e.browserEvent.clientX;
    y = e.browserEvent.clientY;
    bodyContextMenu.showAt(e.getXY());
    bodyContextMenu.showAt([x,y]);
    };
    this.cel = Ext.get(this.getEditorBody()) ;
    this.cel.on('contextmenu', function(e){
    x = e.browserEvent.clientX;
    y = e.browserEvent.clientY;
    e.stopEvent();
    e.preventDefault();
    e.stopEvent();

    });
    var opts = {buffer:1000};

    this.cel.on('contextmenu', myHandler , this ,opts);
    If I increase buffer size it doen't show right click menu.

    *EDIT BY SLEMMON
    Tested on 4.2.0
    Tested on 4.2.1.760

    Code:
    Ext.tip.QuickTipManager.init();  // enable tooltips
    new Ext.panel.Panel({
        title: 'HTML Editor',
        renderTo: Ext.getBody(),
        width: 550,
        height: 250,
        frame: true,
        layout: 'fit',
        items: {
            xtype: 'htmleditor',
            enableColors: false,
            enableAlignments: false
            , listeners: {
                afterrender: function (field) {
                    var menu = Ext.widget('menu', {
                        items: [{
                            text: 'first'
                        }, {
                            text: 'second'
                        }]
                    });
                    
                    field.mon(Ext.get(field.getEditorBody()), 'contextmenu', function (e) {
                        e.preventDefault();
                        menu.showAt(e.getXY());
                    });
                }
                , delay: 50
            }
        }
    });
    Last edited by slemmon; 17 Apr 2013 at 9:36 AM. Reason: added additional test details and inline example

  2. #2
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    4,904
    Vote Rating
    177
    slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold

      0  

    Default


    Thanks for the report! I have opened a bug in our bug tracker.

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi