Ticket #4041: 4041_2.patch

File 4041_2.patch, 879 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 contextmenu event in table cells collapse
     158                                                                // whatever selection is, avoding saving the last
     159                                                                // 'wrong' snapshot.(#3001)
     160                                                                var target = evt.data.getTarget();
     161                                                                if ( evt.data.$.button == 2
     162                                                                         && target.is
     163                                                                         && target.getName() in CKEDITOR.dtd.$tableContent )
     164                                                                                return;
     165
    157166                                                                saveEnabled = true;
    158167                                                                setTimeout( function()
    159168                                                                        {
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy