為什麼從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 插件 | 雲版插件 | MAC 插件 |

