mcguffin / the-paste

Paste Images in WordPress from many applications and upload them to the media library.
https://wordpress.org/plugins/the-paste/
GNU General Public License v3.0
40 stars 11 forks source link

Images not linking to full-size image #57

Open amccaugh opened 1 year ago

amccaugh commented 1 year ago

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 commented 10 months ago

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