Skip to content

Commit

Permalink
Handle paste for cE
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed May 6, 2024
1 parent 5bf3327 commit de9e5c6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ export default function useClipboardHandler() {
const hasSelection =
event.type === 'copy' || event.type === 'cut'
? documentHasUncollapsedSelection( ownerDocument )
: documentHasSelection( ownerDocument );
: documentHasSelection( ownerDocument ) &&
! ownerDocument.activeElement.isContentEditable;

// Let native copy behaviour take over in input fields.
if ( hasSelection ) {
Expand Down

0 comments on commit de9e5c6

Please sign in to comment.