ssb: Disallow rich text paste on Firefox. Didn't realize it doesn't support contenteditable='plaintext-only'.

This commit is contained in:
2024-10-17 12:41:29 -04:00
parent 1dd7e4347c
commit 581f72b3f8
2 changed files with 4 additions and 1 deletions

View File

@ -180,6 +180,9 @@ class TfComposeElement extends LitElement {
break;
}
}
event.preventDefault();
document.execCommand('insertText', false, event.clipboardData.getData('text/plain'));
}
async submit() {