} );\r
});\r
\r
+ // Dismiss the (wrong) 'beforepaste' event fired on context menu open. (#7953)\r
+ body.on( 'contextmenu', function()\r
+ {\r
+ depressBeforeEvent = 1;\r
+ setTimeout( function() { depressBeforeEvent = 0; }, 10 );\r
+ });\r
+\r
body.on( 'beforecut', function() { !depressBeforeEvent && fixCut( editor ); } );\r
\r
body.on( 'mouseup', function(){ setTimeout( function(){ setToolbarStates.call( editor ); }, 0 ); }, editor );\r