go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
45.06k stars 5.49k forks source link

Cannot paste into comment fields using mouse #11216

Closed IzzySoft closed 1 year ago

IzzySoft commented 4 years ago

Description

When I try to paste into a comment (e.g. issue) using mouse middle button, nothing happens. This is true for my self-hosted instance as well as for Codeberg.org – however, funnily it seems to work on try.gitea.io (which runs a development version). As I often use both clipboards separately, not being able to mouse-paste is really hindering to me.

I'm not sure if the functionality being available at try.gitea.io means it will be available with a future release – or if that's some "internal modification" not being released. I couldn't find a corresponding configuration option either. But neither do I see a reason to disable that by default – that's quite unusual, and not the case with other products like GitLab or Github.

Screenshots

Cannot screenshot what's not there :wink:

guillep2k commented 4 years ago

try.gitea.io is running our development version for 1.12. It's a "future release" indeed. We hope to bring up a release candidate very soon. Keep checking blog.gitea.io! 😁

BTW, you can get our latest nightly release from https://dl.gitea.io/gitea/. Make sure you don't get confused by the alphabetical order of the directory.

Closing as fixed (in 1.12) 😉

IzzySoft commented 4 years ago

Good to know, thanks! And yes, I regularly check with releases/ here :wink:

IzzySoft commented 4 years ago

With 1.12 rolled out on Codeberg.org, I still cannot copy/paste using the mouse. Must that be explicitly enabled – or was it just not included with the release?

IzzySoft commented 4 years ago

It's still unfixed. I've tracked it down to JavaScript: With JS disabled, I can paste fine. As soon as JS is enabled, it no longer works. The culprit is most likely SimpleMde (see this issue there). Nextcloud Notes seems to have the same problem. There might be even more references. The issue at SimpleMde unfortunately is open already since 2017 and didn't get much attention (and I'm afraid it won't get any attention either: the project looks quite dead; maybe it's time to replace the editor, if there's an alternative).

@guillep2k mind to reopen? I guess it worked with try.gitea.io because I didn't enable JS for the site. I just tried again now with JS enabled, and indeed it does not work there either. Disabling JS is not a good option either as then not even preview would work…

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions.

IzzySoft commented 4 years ago

Dear bot, thanks for asking but the issue still persists. Please ask one of the devs for advice :rofl:

nidico commented 2 years ago

I'm having this issue as well in Firefox (99) on Debian Linux as well as on Firefox (99) on Linux Mint. On Chromium it works fine. It doesn't matter whether wayland is used or not.

To summarize:

This needs some more investigation...

lunny commented 1 year ago

Should be fixed by #23876

IzzySoft commented 1 year ago

Thanks @lunny – will check again when the next release containing that commit is out. Feel free to give me a ping should I forget to report back in time :wink:

silverwind commented 1 year ago

Definitely fixed with https://github.com/go-gitea/gitea/pull/23876, let's close.

IzzySoft commented 1 year ago

OK, OK – I take your word on that, thanks :smile: