When copying content from a published post or preview, don't copy links to embedded images; copy the images

AI-generated summary

A user reports an issue where copying content from a Discourse post includes links to embedded images, which become broken if the original post is deleted. The user suggests that instead of copying links, the images themselves should be duplicated when copying content, to ensure the images remain accessible. rokejulianlockhart highlights this problem, noting that the copied content loses image functionality when the original post is removed, and proposes a solution to improve the copying functionality.

Recently, I wanted to duplicate the content of a Discourse post into a message, to be sent via e-mail. That worked well. However, that post has since been deleted, so the images have been removed from the server: [1]

[2]

Instead, having the images themselves duplicated into the clipboard (perhaps, via a src="data:image/png;base64, rather than an src="https:), would be an improvement.

This more prominently applies to content copied from the previewer. [3]


  1. gitlab.com/-/snippets/4904110 ↩︎

  2. powerusers.codidact.com/posts/294991 ↩︎

  3. reddit.com/r/ProtonMail/comments/1nif5ia/comment/nm1gcrp ↩︎

4 Likes