Ticket #6211: 6211.patch

File 6211.patch, 1.0 KB (added by WebSpellChecker.net, 14 years ago)
  • contextmenu/plugin.js

     
    201201                        element.on( 'contextmenu', function( event )
    202202                                {
    203203                                        var domEvent = event.data;
     204                                       
     205                                        if( CKEDITOR.env.mac || CKEDITOR.env.opera )
     206                                                this._.target = domEvent.getTarget();
    204207
    205208                                        if ( nativeContextMenuOnCtrl &&
    206209                                             // Safari on Windows always show 'ctrlKey' as true in 'contextmenu' event,
  • scayt/plugin.js

     
    626626                                                        return null;
    627627
    628628                                                var scayt_control = plugin.getScayt( editor ),
    629                                                         node = scayt_control.getScaytNode();
     629                                                        node = CKEDITOR.env.mac || CKEDITOR.env.opera ? scayt_control.getScaytNode(editor.contextMenu._.target.$) : scayt_control.getScaytNode();
    630630
    631631                                                if ( !node )
    632632                                                        return null;
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy