Paste image content from clipboard #54

Closed
opened 2026-02-17 18:05:44 +00:00 by hodlbod · 11 comments
Owner

Imported from https://github.com/andotherstuff/universes/issues/67 by @staab on 2026-02-13T19:24:11Z


"Ctrl+V clipboard Image pasting"

nevent1qvzqqqqqpyqjzamnwvaz7tmdv46xztnnwpskxetn9e3k7unpvdkx2tnnda3kjctv9uqzqv3h4dl4h4a0969zgs0sveny2ralk8vcapvxut4dtqrudz48333ywyvja4

_Imported from https://github.com/andotherstuff/universes/issues/67 by @staab on 2026-02-13T19:24:11Z_ --- "Ctrl+V clipboard Image pasting" nevent1qvzqqqqqpyqjzamnwvaz7tmdv46xztnnwpskxetn9e3k7unpvdkx2tnnda3kjctv9uqzqv3h4dl4h4a0969zgs0sveny2ralk8vcapvxut4dtqrudz48333ywyvja4
hodlbod added this to the Current milestone 2026-02-17 18:05:44 +00:00
mplorentz self-assigned this 2026-02-17 21:09:18 +00:00
Collaborator

This is working for me on Firefox and in the iOS app, but not on Android.

This is working for me on Firefox and in the iOS app, but not on Android.
hodlbod added the priority label 2026-02-18 17:37:55 +00:00
Collaborator

I can reproduce this on my real Android phone but not in the Android emulator. Yay. I'm trying to figure out how to get useful logs or web inspector from capacitor on the android device. @hodlbod is this a problem you have solved already?

I can reproduce this on my real Android phone but not in the Android emulator. Yay. I'm trying to figure out how to get useful logs or web inspector from capacitor on the android device. @hodlbod is this a problem you have solved already?
Author
Owner

Yeah, if you connect your phone via usb you can use it as a target from android studio and access logcat from there. If you update the server setting capacitor.config.js you can enable hot-ish reloading too

Yeah, if you connect your phone via usb you can use it as a target from android studio and access logcat from there. If you update the server setting capacitor.config.js you can enable hot-ish reloading too
Collaborator

I wasn't able to root cause this today. Got caught in js dependency purgatory (@hodlbod have you ever needed to npm i -g xmlparser? I wonder if it should be in the setup instructions).

The main things I learned:

  • tapping and holding in the text box and selecting "Paste" works
  • tapping the paste icon to the left of the editor gives an error toast "Clipboard access denied"
  • tapping the paste icon on the android keyboard gives a more system-looking toast "Flotilla does not support image pasting here"
  • the issue is likely in nostr-editor which is pulled in by welshman.
I wasn't able to root cause this today. Got caught in js dependency purgatory (@hodlbod have you ever needed to `npm i -g xmlparser`? I wonder if it should be in the setup instructions). The main things I learned: - tapping and holding in the text box and selecting "Paste" works - tapping the paste icon to the left of the editor gives an error toast "Clipboard access denied" - tapping the paste icon on the android keyboard gives a more system-looking toast "Flotilla does not support image pasting here" - the issue is likely in nostr-editor which is pulled in by welshman.
Author
Owner

@hodlbod have you ever needed to npm i -g xmlparser

No, why did you need to do that?

Sounds like we might need to request clipboard access and/or add capabilities.

> [@hodlbod](https://gitea.coracle.social/hodlbod) have you ever needed to npm i -g xmlparser No, why did you need to do that? Sounds like we might need to request clipboard access and/or add capabilities.
Collaborator

@hodlbod have you ever needed to npm i -g xmlparser

No, why did you need to do that?

I installed some capacitor clipboard package and it bricked npx cap sync which started complaining about missing xml parser. I tried uninstalling the new package, explicitly specifying xmlparser as a devDependency, wiping packages, hoisting packages, in the end globally installing xmlparser is what fixed it 🤷

> > [@hodlbod](https://gitea.coracle.social/hodlbod) have you ever needed to npm i -g xmlparser > > > > > > No, why did you need to do that? > I installed some capacitor clipboard package and it bricked `npx cap sync` which started complaining about missing xml parser. I tried uninstalling the new package, explicitly specifying xmlparser as a devDependency, wiping packages, hoisting packages, in the end globally installing xmlparser is what fixed it 🤷
hodlbod added the easy label 2026-04-01 17:19:12 +00:00
hodlbod removed this from the Current milestone 2026-04-02 18:57:08 +00:00
hodlbod added the dev label 2026-04-02 19:21:59 +00:00
hodlbod added this to the Current milestone 2026-04-02 19:22:01 +00:00
Contributor

@hodlbod is this still open to work on?

@hodlbod is this still open to work on?
mplorentz was unassigned by hodlbod 2026-04-04 16:09:19 +00:00
Khushvendra was assigned by hodlbod 2026-04-04 16:09:19 +00:00
Author
Owner

Yep, just assigned you, thanks!

Yep, just assigned you, thanks!
Contributor

Yep, just assigned you, thanks!

Sure, will get to it asap!

> Yep, just assigned you, thanks! Sure, will get to it asap!
Contributor

@hodlbod Is there an explicit "paste icon" you want me to add to the UI, or are you ok with this handling the Android system "Paste" pop-over and standard keyboard inputs? The issue just says "Ctrl+V clipboard Image pasting...

@hodlbod Is there an explicit "paste icon" you want me to add to the UI, or are you ok with this handling the Android system "Paste" pop-over and standard keyboard inputs? The issue just says "Ctrl+V clipboard Image pasting...
Author
Owner

Let's just do system standard paste (long-press > paste)

Let's just do system standard paste (long-press > paste)
Sign in to join this conversation.
3 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: coracle/flotilla#54