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

Favor clipboard image when there's no surrounding text #3193

Open
dae opened this issue May 9, 2024 · 1 comment
Open

Favor clipboard image when there's no surrounding text #3193

dae opened this issue May 9, 2024 · 1 comment

Comments

@dae
Copy link
Member

dae commented May 9, 2024

From time to time when pasting an image to a note, an error message occurs with message as in the topic name. The image pastes to the note, though.
Version of Anki: 24.04.1

We try the HTML content first, because the user may have selected both text and an image at the same time. But if we know there's only an image, using the image content on the clipboard would let us avoid a network request. Perhaps if there's an image on the clipboard, we can safely assume there's no surrounding text, even if there's also HTML in the clipboard?

Originally reported on https://forums.ankiweb.net/t/an-error-occured-while-opening-https-connection-pool/44459/2

@abdnh
Copy link
Contributor

abdnh commented Jun 5, 2024

This can reintroduce some issues noted here: 174a2e7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants