ConverationView.onPaste: Better handling of clipboard contents

This commit is contained in:
Scott Nonnenberg 2023-10-24 10:18:58 -07:00 committed by GitHub
parent 607349e0b8
commit a1e7efee12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 26 additions and 6 deletions

View file

@ -16,7 +16,7 @@ export function createEventHandler({
if (
!activeElement ||
activeElement.matches('input, textarea') ||
!activeElement.closest('[contenteditable=true]')
!activeElement.closest('[contenteditable=plaintext-only]')
) {
return;
}