Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paste into Message Edit Field Not Working #27367

Closed
JamesPC44 opened this issue Apr 18, 2024 · 6 comments
Closed

Paste into Message Edit Field Not Working #27367

JamesPC44 opened this issue Apr 18, 2024 · 6 comments
Labels
T-Defect X-Needs-Info This issue is blocked awaiting information from the reporter

Comments

@JamesPC44
Copy link

Steps to reproduce

Begin writing a new message in any room in element

Paste from the clipboard (must have data)

Outcome

What did you expect?

Clipboard content to be pasted

What happened instead?

Nothing

This works on Chromium Version 123.0.6312.122 (Official Build) snap (64-bit) on the same machine. All FF extensions were disabled for testing. Has been an issue for probably over a year. Has not been an issue on any other website that I have seen in the meantime. Ctrl+v and pasting from the right-click menu are both affected.

Operating system

Ubuntu 20.04

Browser information

Firefox 124.0.2

URL for webapp

app.element.io

Application version

Element version: 1.11.64 Crypto version: Olm 3.2.15

Homeserver

matrix.org

Will you send logs?

Yes

@JamesPC44
Copy link
Author

Logs sent!

@t3chguy
Copy link
Member

t3chguy commented Apr 18, 2024

Can you check about:config for dom.event.clipboardevents.enabled - if it is false (disabled) then the is a non-standard behaviour in the web and unsupported. See #25544

@t3chguy t3chguy added the X-Needs-Info This issue is blocked awaiting information from the reporter label Apr 18, 2024
@JamesPC44
Copy link
Author

It is false

This is very disappointing to see not planned. I've had that on for well over a year, and this is the only site I have this issue with. Disabling clipboard events is valuable as it prevents pages from blocking copy/paste. Since Element (presumably) isn't doing that, I fail to see why we can't let "normal" copy/paste work. This not working lead to me moving away from Element, I figured it would start working again.

@JamesPC44 JamesPC44 closed this as not planned Won't fix, can't repro, duplicate, stale Apr 18, 2024
@t3chguy
Copy link
Member

t3chguy commented Apr 18, 2024

The problem is there is no way to detect it (given it is non-standards-compliant) to switch into a simple-only paste mode. The additional paste code is needed to handle copy-pasting of pills and other rich content in the composer. If you know of a fix, contributions welcome.

@JamesPC44
Copy link
Author

What are "pills"?

@t3chguy
Copy link
Member

t3chguy commented Apr 18, 2024

image

The room link in this message is an example of a [room] pill

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Defect X-Needs-Info This issue is blocked awaiting information from the reporter
Projects
None yet
Development

No branches or pull requests

2 participants