microsoft / roosterjs

roosterjs is a framework-independent javascript rich text editor.
Other
1.18k stars 158 forks source link

Unable to paste images from the clipboard view on Android #2776

Open palatter opened 2 months ago

palatter commented 2 months ago

Describe the bug

Android has a clipboard view that is available from the keyboard. It shows the most recent images that were copied. If you select 1 or more images from this view, it will fail to paste.

Error: "Chrome does not support image pasting here."

https://github.com/user-attachments/assets/2046a06c-00f1-45e6-b8dc-fec56e97e7b9

You can still paste a single image using a long press to copy an image and then paste an image but this limiting when trying to use multiple images.

To Reproduce Steps to reproduce the behavior:

  1. Copy a number of images
  2. Go to https://microsoft.github.io/roosterjs/index.html#format on Android device
  3. Open keyboard and select the clipboard
  4. Select one or more images
  5. Paste
  6. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Device Information

JiuqingSong commented 1 month ago

Hi @palatter , would you like to submit a fix?

Thanks.