Uploaded images with ctrl-V are not automatically "linked" to themselves #1439

Open
opened 2026-02-05 00:54:15 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @guischmo on GitHub (Nov 4, 2019).

Describe the bug
When you upload an image with the "insert image" option in the editor, the image will be inserted with an automatic click link to itself so you can open it in full size version.

However if you insert an image in your clipboard with Ctrl-V, it is not inserted with this link, you have to delete it and choose it again this time from the gallery for this to work.

Steps To Reproduce

-Open an image in paint and copy it
-Create a new page
-Paste the image and save the page
-Try to click on it in view mode, there won't be a link.

Expected behavior
The image inserted should be clickable with a link to itself, like any image inserted with the "add image" button.

Your Configuration (please complete the following information):

  • BookStack v0.27.5
  • PHP Version: Not sure, but pretty sure it's the lastest
  • Hosting Method: Apache I think
Originally created by @guischmo on GitHub (Nov 4, 2019). **Describe the bug** When you upload an image with the "insert image" option in the editor, the image will be inserted with an automatic click link to itself so you can open it in full size version. However if you insert an image in your clipboard with Ctrl-V, it is not inserted with this link, you have to delete it and choose it again this time from the gallery for this to work. **Steps To Reproduce** -Open an image in paint and copy it -Create a new page -Paste the image and save the page -Try to click on it in view mode, there won't be a link. **Expected behavior** The image inserted should be clickable with a link to itself, like any image inserted with the "add image" button. **Your Configuration (please complete the following information):** - BookStack v0.27.5 - PHP Version: Not sure, but pretty sure it's the lastest - Hosting Method: Apache I think
OVERLORD added the 🛠️ Enhancement💻 Front-End labels 2026-02-05 00:54:15 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Nov 15, 2019):

Thanks for the request @guischmo.
I think I had actually done this as part of a revision to the image-paste system but that never worked out due to some technical bugs. Will ideally implement this once I revisit that system.

@ssddanbrown commented on GitHub (Nov 15, 2019): Thanks for the request @guischmo. I think I had actually done this as part of a revision to the image-paste system but that never worked out due to some technical bugs. Will ideally implement this once I revisit that system.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#1439