IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
385 | 385 | if ( depressBeforeEvent ) |
386 | 386 | return; |
387 | 387 | |
| 388 | // Dismiss the "beforepaste" event fired in IE when |
| 389 | // opening browser toolbar/context menu. |
| 390 | var domEvent = evt.data && evt.data.$; |
| 391 | if ( CKEDITOR.env.ie && domEvent && !domEvent.ctrlKey ) |
| 392 | return; |
| 393 | |
388 | 394 | // Fire 'beforePaste' event so clipboard flavor get customized |
389 | 395 | // by other plugins. |
390 | 396 | var eventData = { mode : 'html' }; |
… |
… |
|
403 | 409 | } ); |
404 | 410 | }); |
405 | 411 | |
406 | | // Dismiss the (wrong) 'beforepaste' event fired on context menu open. (#7953) |
407 | | body.on( 'contextmenu', function() |
| 412 | // Handle the late coming "paste" event from browser toolbar/context menu. |
| 413 | body.on( 'paste', function( evt ) |
408 | 414 | { |
409 | | depressBeforeEvent = 1; |
410 | | setTimeout( function() { depressBeforeEvent = 0; }, 10 ); |
411 | | }); |
| 415 | if ( !editor.document.getById( 'cke_pastebin' ) ) |
| 416 | { |
| 417 | // Prevent native paste. |
| 418 | evt.data.preventDefault(); |
| 419 | |
| 420 | // Resort to the paste command. |
| 421 | pasteCmd.exec( editor ); |
| 422 | } |
| 423 | } ); |
| 424 | |
412 | 425 | |
413 | 426 | body.on( 'beforecut', function() { !depressBeforeEvent && fixCut( editor ); } ); |
414 | 427 | |