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

Pasting an image into edgeless mode creates a new note instead (Firefox only) #8718

Open
1 task done
apkd opened this issue Nov 9, 2024 · 1 comment
Open
1 task done
Labels
mod:clipboard Module: related to clipboard type:bug Something isn't working

Comments

@apkd
Copy link

apkd commented Nov 9, 2024

What happened?

Pasting an image into edgeless mode creates a new empty note instead. This only seems to happen in Firefox (also tested in Chrome and Edge), and only when the image was copied from another browser tab using the "Copy Image" option in the context menu. An error is logged in the browser console.

Confusingly, pasting screenshots (e.g. taken using the snipping tool) or images copied from any other program seems to work correctly. Pasting the image inside a note also seems to work fine.

firefox_5kUyKBLAhg

Distribution version

Linux

What browsers are you seeing the problem on if you're using web version?

Firefox

Are you self-hosting?

  • Yes

Relevant log output

XML Parsing Error: no root element found
Location: https://[redacted]/workspace/[redacated]/EVFWJmBfzMTi5uf0_kvcZ?mode=edgeless
Line Number 1, Column 1: 2 EVFWJmBfzMTi5uf0_kvcZ:1:1

Anything else?

No response

@forehalo forehalo transferred this issue from toeverything/AFFiNE Nov 11, 2024
@donteatfriedrice donteatfriedrice added type:bug Something isn't working mod:clipboard Module: related to clipboard labels Nov 12, 2024
@fourdim
Copy link
Contributor

fourdim commented Dec 8, 2024

This was probably fixed by #8827.
Could you please check it again?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mod:clipboard Module: related to clipboard type:bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

3 participants