How should this interact with pasting a link or text into one of the form fields?
As suggested by Thom.
See https://developer.mozilla.org/en-US/docs/Web/API/Element/paste_event
How should this interact with pasting a link or text into one of the form fields?
I think the most beautiful support would be to allow pasting, and depending on the paste content, emit some kind of in-browser view of what was pasted. Then the user can submit that, or maybe even edit that before submitting.
For example:
When somebody pastes an image, show the image and a submit option.
When somebody pastes plain text, spawn a <textarea> with the pasted text as innerText. (And a submit button.)
Otherwise, show something like binary file of 42kB.
I think the most beautiful support would be to allow pasting, and depending on the paste content, emit some kind of in-browser view of what was pasted. Then the user can submit that, or maybe even edit that before submitting.
For example:
- When somebody pastes an image, show the image and a submit option.
- When somebody pastes plain text, spawn a `<textarea>` with the pasted text as `innerText`. (And a submit button.)
- Otherwise, show something like `binary file of 42kB`.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
As suggested by Thom.
See https://developer.mozilla.org/en-US/docs/Web/API/Element/paste_event
How should this interact with pasting a link or text into one of the form fields?
I think the most beautiful support would be to allow pasting, and depending on the paste content, emit some kind of in-browser view of what was pasted. Then the user can submit that, or maybe even edit that before submitting.
For example:
<textarea>with the pasted text asinnerText. (And a submit button.)binary file of 42kB.