forked from cory/tildefriends
ssb: Disallow rich text paste on Firefox. Didn't realize it doesn't support contenteditable='plaintext-only'.
This commit is contained in:
@ -180,6 +180,9 @@ class TfComposeElement extends LitElement {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
event.preventDefault();
|
||||
document.execCommand('insertText', false, event.clipboardData.getData('text/plain'));
|
||||
}
|
||||
|
||||
async submit() {
|
||||
|
Reference in New Issue
Block a user