Ticket #4041: 4041_4.patch

File 4041_4.patch, 823 bytes (added by Garry Yao, 14 years ago)
  • _source/plugins/selection/plugin.js

     
    152152                                                // inside a selection. We don't want to capture that.
    153153                                                doc.on( 'mousedown', disableSave );
    154154                                                doc.on( 'mouseup',
    155                                                         function()
     155                                                        function( evt )
    156156                                                        {
     157                                                                // IE context-menu event in table cells collapse
     158                                                                // whatever selection is, avoiding saving this
     159                                                                // 'wrong' snapshot.(#3001)
     160                                                                var evt = evt.data;
     161                                                                if ( evt.$.button == 2
     162                                                                                && evt.getTarget().hasAscendant( 'table' ) )
     163                                                                        return;
     164
    157165                                                                saveEnabled = true;
    158166                                                                setTimeout( function()
    159167                                                                        {
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy