4 ms·
There are actually some good reasons. The default paste action will just paste text or HTML. However most OS clipboards have the ability to paste various types
by kevincox 3y ago
There are actually some good reasons. The default paste action will just paste text or HTML. However most OS clipboards have the ability to paste various types of content. If the clipboard contains a "better" media type it makes sense for the application to handle it and prevent the default action.
For example:
1. Pasting an image into a markdown field. A common action is to upload the image and insert the correct markup to embed it.
2. Pasting richer content inside an application. For example when copying a rich widget you may embed a text representation, HTML representation but if the user pastes the widget back into your app it is often best to keep a "native" representation that can be used to faithfully reconstruct the original data.
- macintux 3y agoRelated, my current rage-inducing gripe is that at $DAYJOB, where I have to use a Windows VDI, pasting text from OneNote into a Jira comment results in a screenshot. I don't know whether OneNote is more to blame (I already hate it because Ctrl-C rarely works to copy) or Jira, or Windows, or who, but it's just maddening. (Clarification: pasting text results in a picture as an attachment. Didn't mean to imply that pasting would actually take a snapshot of the screen.)
- deely3 3y agoCan't test, but what happens if you paste with Shift-Ctrl-V?
- macintux 3y agoWell, of course I now can't reproduce the problem for whatever reason, but I'll keep that trick in my pocket, thanks.
- mmis1000 3y agofortunately, firefox now has a 'paste as plain text' option. So I can just use it instead.