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

Images not linking to full-size image #57

Open
amccaugh opened this issue Oct 26, 2023 · 1 comment
Open

Images not linking to full-size image #57

amccaugh opened this issue Oct 26, 2023 · 1 comment

Comments

@amccaugh
Copy link

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
Copy link
Author

amccaugh commented Dec 5, 2023

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

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

1 participant