+ if ( CKEDITOR.env.ie )\r
+ {\r
+ // Dismiss the (wrong) 'beforepaste' event fired on context menu open. (#7953)\r
+ body.on( 'contextmenu', function()\r
+ {\r
+ depressBeforeEvent = 1;\r
+ // Important: The following timeout will be called only after menu closed.\r
+ setTimeout( function() { depressBeforeEvent = 0; }, 0 );\r
+ } );\r
+\r
+ // Handle IE's late coming "paste" event when pasting from\r
+ // browser toolbar/context menu.\r
+ body.on( 'paste', function( evt )\r
+ {\r
+ if ( !editor.document.getById( 'cke_pastebin' ) )\r
+ {\r
+ // Prevent native paste.\r
+ evt.data.preventDefault();\r
+\r
+ depressBeforeEvent = 0;\r
+ // Resort to the paste command.\r
+ pasteCmd.exec( editor );\r
+ }\r
+ } );\r
+ }\r
+\r