为什么从OneNote 复制文本,粘贴到其他 App 时变成图片?
2024-08-15
数字笔记珍宝
问题:
为什么从OneNote 复制文本,粘贴到其他 App 时变成图片?回答:
从 OneNote 复制文本时,OneNote 发送到粘贴板是带有纯文本格式的。它不仅发送了纯文本格式到剪贴板,还包括其他格式:- 纯文本格式
- HTML 格式
- 图片格式
只不过,其他 App 在处理粘贴功能时,优先选择了图片格式。
它们不像 OneNote 提供多种粘贴格式选择:
- 保留源格式
- 合并格式
- 只保留文本
- 图片
这就是导致粘贴内容到这些 App 时,变成图片的原因。
一般聪明的 App 除了提供 Ctrl + V 进行粘贴外,还提供了粘贴成文本的快捷键:Ctrl+Shift+V
Hey, this is Mitch, I'm a dev on the OneNote team.
TL;DR - If you're seeing copied text from OneNote being pasted as an image into another app, it's actually the other app's decision to choose the image format and there's not much OneNote can do about it.
Hopefully this will help provide some explanation and a potential workaround.
The different platforms (Windows, OSX, iOS, Android) do have differences in how the clipboard works, but in general, the way copy/paste works on a platform is in two parts:
- At the time of the copy, an app publishes content to the OS clipboard and includes which formats that content supports being pasted as
- At the time of paste, an app asks the OS clipboard for content in a specific format
So in your OneNote scenario, even if you select only text and copy it, OneNote will tell the system that it can paste that content in a variety of formats - plaintext, html, and image being some such formats. At that point, it is up to the app being pasted into to decide which format to choose from the available formats.
Most apps will have a default priority ranking of formats. If you are seeing that OneNote text content is pasted as an image into another app, that likely means that other app has some logic that checks if content supports being pasted as an image first before checking if it can paste as plaintext. I'd suggest giving feedback to the app you are pasting into to prioritize HTML or plaintext format over image format.
Most apps nowadays will provide some way for users to specify the format to paste as. In the app you are trying to paste, try to right-click and see if they have a context menu to specify the paste format. Ctrl+Shift+V is a common keyboard shortcut to paste as plaintext.
OneNoteGem
EXE 插件 | UWP 插件 | MAC 插件 |