TriliumNext / Notes

Build your personal knowledge base with TriliumNext Notes
https://triliumnext.github.io/Docs/
GNU Affero General Public License v3.0
1k stars 56 forks source link

(Bug report) Copy and Paste not working, only Text is pasted not Images #521

Open megabugman opened 2 weeks ago

megabugman commented 2 weeks ago

TriliumNext Version

0.90.9 beta

What operating system are you using?

Windows

What is your setup?

Local (no sync)

Operating System Version

Windows 10 Version 10.0.19045

Description

Select text and pictures, copy to clipboard, paste into another application only pastes the text not the pictures: 2024-10-25_19h34_35-00 00 00 000-00 00 07 601

How to paste images as well?

Error logs

No response

Onionbai commented 2 weeks ago

In trilium, images are stored in internal database, if you directly copy an image, that is copying the internal link to this image. To get this image, first double click on the image, you'll see the the image in attachment view, and then right click on the image, you will see two options, copy reference to clipboard and copy image to clipboard, click on the latter, then you have the image in your clipboard. image

perfectra1n commented 2 weeks ago

Yeah, this is a feature (definitely can be an annoying one). #452 should appropriately copy the image to your clipboard when following what @Onionbai said. However, perhaps we should evaluate if we would like to override this longstanding "feature"? @eliandoran what do you think?