Ticket #3373: 3373_6.patch

File 3373_6.patch, 566 bytes (added by Garry Yao, 14 years ago)
  • _source/plugins/contextmenu/plugin.js

     
    119119                                }
    120120                        }
    121121
    122                         menu.show( offsetParent, corner || ( editor.lang.dir == 'rtl' ? 2 : 1 ), offsetX, offsetY );
     122                        // Don't show context menu with zero items.
     123                        menu.items.length && menu.show( offsetParent, corner || ( editor.lang.dir == 'rtl' ? 2 : 1 ), offsetX, offsetY );
    123124                }
    124125        },
    125126
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy