Changeset 7003 for CKEditor/trunk


Ignore:
Timestamp:
06/02/11 16:42:06 (4 years ago)
Author:
garry.yao
Message:

#7953: Bypass the wrong 'beforepaste' event on context menu open fired by IE.

Location:
CKEditor/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CKEditor/trunk/CHANGES.html

    r7001 r7003  
    9595                <li><a href="http://dev.ckeditor.com/ticket/7847">#7847</a> : [IE8] Insert image with non-secure source in a HTTPS page breaks the dialog.</li> 
    9696                <li><a href="http://dev.ckeditor.com/ticket/7915">#7915</a> : [IE] Editing iframe height value missing from the Iframe dialog.</li> 
     97                <li><a href="http://dev.ckeditor.com/ticket/7953">#7953</a> : [IE] Text selection lost after open native context menu.</li> 
    9798                <li>Updated the following language files:<ul> 
    9899                        <li><a href="http://dev.ckeditor.com/ticket/7834">#7834</a> : Dutch;</li> 
  • CKEditor/trunk/_source/plugins/clipboard/plugin.js

    r6904 r7003  
    398398                                                        } ); 
    399399                                                }); 
     400 
     401                                        // Dismiss the (wrong) 'beforepaste' event fired on context menu open. (#7953) 
     402                                        body.on( 'contextmenu', function() 
     403                                        { 
     404                                                depressBeforeEvent = 1; 
     405                                                setTimeout( function() { depressBeforeEvent = 0; }, 0 ); 
     406                                        }) 
    400407 
    401408                                        body.on( 'beforecut', function() { !depressBeforeEvent && fixCut( editor ); } ); 
Note: See TracChangeset for help on using the changeset viewer.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy