ConverationView.onPaste: Better handling of clipboard contents
This commit is contained in:
parent
607349e0b8
commit
a1e7efee12
5 changed files with 26 additions and 6 deletions
|
@ -27,7 +27,7 @@ window.addEventListener('contextmenu', e => {
|
|||
const node = e.target as Element | null;
|
||||
|
||||
const isEditable = Boolean(
|
||||
node?.closest('textarea, input, [contenteditable="true"]')
|
||||
node?.closest('textarea, input, [contenteditable="plaintext-only"]')
|
||||
);
|
||||
const isLink = Boolean(node?.closest('a'));
|
||||
const isImage = Boolean(node?.closest('.Lightbox img'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue