ssb: Disallow rich text paste on Firefox. Didn't realize it doesn't support contenteditable='plaintext-only'.
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 15m1s

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

View File

@ -1,5 +1,5 @@
{
"type": "tildefriends-app",
"emoji": "🐌",
"previous": "&tttJtdqA+iHWYVzZzA8jQdghIFjoVVO/2t6kHqCLnZI=.sha256"
"previous": "&CsZ2FBYY9awXNPPHAhTlrOHuKlGU6RXZJ3UTV3UQRIE=.sha256"
}

View File

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