[GH-ISSUE #3263] [Bug] Ctrl + V does not paste image from clipboard #1436

Open
opened 2026-03-23 20:49:12 +00:00 by mirror · 13 comments
Owner

Originally created by @Harmon758 on GitHub (Aug 23, 2023).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/3263

Originally assigned to: @LucasXu0 on GitHub.

Bug Description

Attempting to paste an image from clipboard using Ctrl + V doesn't seem to work.

How to Reproduce

  • Copy an image into clipboard
  • Attempt to paste into an AppFlowy document using Ctrl + V
  • Observe image not being pasted
  • Right click in the document -> Paste
  • Observe image pasted

Expected Behavior

Ctrl + V should also work to paste an image from clipboard.

Operating System

Microsoft Windows [Version 10.0.19045.3086]

AppFlowy Version(s)

0.3.0

Originally created by @Harmon758 on GitHub (Aug 23, 2023). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/3263 Originally assigned to: @LucasXu0 on GitHub. ### Bug Description Attempting to paste an image from clipboard using Ctrl + V doesn't seem to work. ### How to Reproduce - Copy an image into clipboard - Attempt to paste into an AppFlowy document using Ctrl + V - Observe image not being pasted - Right click in the document -> Paste - Observe image pasted ### Expected Behavior Ctrl + V should also work to paste an image from clipboard. ### Operating System Microsoft Windows [Version 10.0.19045.3086] ### AppFlowy Version(s) 0.3.0
Author
Owner

@LucasXu0 commented on GitHub (Aug 24, 2023):

@Harmon758 Have you tried using 'Ctrl+V' to paste some plain text?

<!-- gh-comment-id:1690944218 --> @LucasXu0 commented on GitHub (Aug 24, 2023): @Harmon758 Have you tried using 'Ctrl+V' to paste some plain text?
Author
Owner

@Harmon758 commented on GitHub (Aug 24, 2023):

Yes, pasting text works fine.

<!-- gh-comment-id:1691062100 --> @Harmon758 commented on GitHub (Aug 24, 2023): Yes, pasting text works fine.
Author
Owner

@LucasXu0 commented on GitHub (Aug 24, 2023):

I can't reproduce it on my Windows. Can you help paste your image on this website and post the format information here?

https://evercoder.github.io/clipboard-inspector/

Screenshot 2023-08-24 at 16 46 48
<!-- gh-comment-id:1691269919 --> @LucasXu0 commented on GitHub (Aug 24, 2023): I can't reproduce it on my Windows. Can you help paste your image on this website and post the format information here? https://evercoder.github.io/clipboard-inspector/ <img width="1072" alt="Screenshot 2023-08-24 at 16 46 48" src="https://github.com/AppFlowy-IO/AppFlowy/assets/11863087/97a0a627-7fd9-48ab-b6d9-53a23b945f07">
Author
Owner

@annieappflowy commented on GitHub (Aug 24, 2023):

I run into the same issue yesterday
What I did was to copy an image from Google Image search results and ctrl-v-ed into a document. This didn't work for me.

<!-- gh-comment-id:1691275532 --> @annieappflowy commented on GitHub (Aug 24, 2023): I run into the same issue yesterday What I did was to copy an image from Google Image search results and ctrl-v-ed into a document. This didn't work for me.
Author
Owner

@Harmon758 commented on GitHub (Aug 24, 2023):

Right clicking and copying your avatar here:
image

<!-- gh-comment-id:1691281359 --> @Harmon758 commented on GitHub (Aug 24, 2023): Right clicking and copying your avatar here: ![image](https://github.com/AppFlowy-IO/AppFlowy/assets/9403740/603f4adb-58dd-49b5-8201-341d354935fd)
Author
Owner

@Harmon758 commented on GitHub (Aug 24, 2023):

Another example, taking a screenshot with ShareX:
image

<!-- gh-comment-id:1691303873 --> @Harmon758 commented on GitHub (Aug 24, 2023): Another example, taking a screenshot with ShareX: ![image](https://github.com/AppFlowy-IO/AppFlowy/assets/9403740/abdc1118-b3db-4f9e-9fa7-0282cacc1100)
Author
Owner

@Harmon758 commented on GitHub (Aug 24, 2023):

I've been able to get it working by copying the image file itself.
Ironically, copying from Firefox's screenshot functionality seems to work as well.

<!-- gh-comment-id:1691316247 --> @Harmon758 commented on GitHub (Aug 24, 2023): I've been able to get it working by copying the image file itself. Ironically, copying from Firefox's screenshot functionality seems to work as well.
Author
Owner

@LucasXu0 commented on GitHub (Aug 24, 2023):

Yes, @Harmon758, I can reproduce now. If the image is sourced from the network, the HTML will also be populated in the pasteboard.

<!-- gh-comment-id:1691331000 --> @LucasXu0 commented on GitHub (Aug 24, 2023): Yes, @Harmon758, I can reproduce now. If the image is sourced from the network, the HTML will also be populated in the pasteboard.
Author
Owner

@Harmon758 commented on GitHub (Aug 24, 2023):

I don't think taking a screenshot with ShareX, as in https://github.com/AppFlowy-IO/AppFlowy/issues/3263#issuecomment-1691303873, has any HTML included, so that might not be the only condition where it doesn't work?

<!-- gh-comment-id:1691342606 --> @Harmon758 commented on GitHub (Aug 24, 2023): I don't think taking a screenshot with ShareX, as in https://github.com/AppFlowy-IO/AppFlowy/issues/3263#issuecomment-1691303873, has any HTML included, so that might not be the only condition where it doesn't work?
Author
Owner

@LucasXu0 commented on GitHub (Aug 24, 2023):

I don't think taking a screenshot with ShareX, as in #3263 (comment), has any HTML included, so that might not be the only condition where it doesn't work?

I have fixed it. It's related to the paste order.

<!-- gh-comment-id:1691344012 --> @LucasXu0 commented on GitHub (Aug 24, 2023): > I don't think taking a screenshot with ShareX, as in [#3263 (comment)](https://github.com/AppFlowy-IO/AppFlowy/issues/3263#issuecomment-1691303873), has any HTML included, so that might not be the only condition where it doesn't work? I have fixed it. It's related to the paste order.
Author
Owner

@leni8ec commented on GitHub (Jan 3, 2025):

Why closed?

Pasting image by Win + V and Ctrl + V - not worked in 0.8.3 (Windows and MacOS)

<!-- gh-comment-id:2569207221 --> @leni8ec commented on GitHub (Jan 3, 2025): Why closed? Pasting image by `Win + V` and `Ctrl + V` - not worked in 0.8.3 (Windows and MacOS)
Author
Owner

@afifurrohman-id commented on GitHub (Feb 13, 2025):

Pasting image by Win + V and Ctrl + V - not worked in 0.7.9 (Windows and MacOS)

Same here 0.8.3 still not work (Windows 11, Android 14)

<!-- gh-comment-id:2656181637 --> @afifurrohman-id commented on GitHub (Feb 13, 2025): > Pasting image by `Win + V` and `Ctrl + V` - not worked in 0.7.9 (Windows and MacOS) Same here 0.8.3 still not work (Windows 11, Android 14)
Author
Owner

@gus-simon commented on GitHub (Feb 26, 2025):

I was able to make the Ctrl + V work from when you get a screenshot using ShareX as an example, by setting to true the UseAlternativeClipboardCopyImage option under Application Settings, Advanced inside ShareX configuration.

Image

This points to me that the AppFlowy issue is related to how it handles pasting "PNG" images without a 32 bit "DIB" (I didn't check AppFlowy code to see which library is used to deal with pasting images from clipboards, etc., but an alternative there could be a good way to go :) ).

<!-- gh-comment-id:2686047084 --> @gus-simon commented on GitHub (Feb 26, 2025): I was able to make the Ctrl + V work from when you get a screenshot using ShareX as an example, by setting to `true` the `UseAlternativeClipboardCopyImage` option under `Application Settings`, `Advanced` inside ShareX configuration. ![Image](https://github.com/user-attachments/assets/a9bea5ab-21dc-47f0-a2c6-8555de21df5e) This points to me that the AppFlowy issue is related to how it handles pasting "PNG" images without a 32 bit "DIB" (I didn't check AppFlowy code to see which library is used to deal with pasting images from clipboards, etc., but an alternative there could be a good way to go :) ).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#1436
No description provided.