the-paste icon indicating copy to clipboard operation
the-paste copied to clipboard

Images not linking to full-size image

Open amccaugh opened this issue 2 years ago • 1 comments

Hi, in The Paste 2.0.9 I'm noticing that images don't by default link to their full-size version, so they're no longer clickable after being pasted. Really the only difference here is that the href tag is missing:

In paste 2.0.9:

<img class="wp-image-53665 alignnone size-medium" src="https://mysite.xyz/wordpress/wp-content/uploads/2023/10/image-23.png" alt="" width="300" height="241" />
<p id="the-pasted-async"></p>

How it it used to be / how I'd like it to be:

<a href="https://mysite.xyz/wordpress/wp-content/uploads/2023/10/image-23.png"><img class="alignnone wp-image-53665 size-medium" src="https://mysite.xyz/wordpress/wp-content/uploads/2023/10/image-23.png" alt="" width="300" height="241" /></a>`

amccaugh avatar Oct 26 '23 18:10 amccaugh

Hi @mcguffin , I noticed you added some code for this in 2.1.0, but it still doesn't seem to be working, or at least I can't figure it out -- when I paste an image, I haven't figured out a way to make sure that a link is included. I even specified image_default_link_type but it doesn't seem to affect anything -- when I paste an image, there is still no a href tag

image

amccaugh avatar Dec 05 '23 20:12 amccaugh