When I drag and drop an image into a markdown editor with long content, it always goes to the top. #5099

Closed
opened 2026-02-05 09:39:57 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @randi65535 on GitHub (Jan 3, 2025).

Describe the Bug

When I drag and drop an image into a markdown editor with long content, it always goes to the top.

Steps to Reproduce

  1. Write text that requires dragging into the Markdown editor.
  2. Drag and drop an image into the editor.

Expected Behaviour

When I drag and drop an image, the image gets uploaded and a link gets added and there is no movement on the screen.

Screenshots or Additional Context

No response

Browser Details

chrome latest, edge latest, firefox latest

Exact BookStack Version

v24.12 (latest)

Originally created by @randi65535 on GitHub (Jan 3, 2025). ### Describe the Bug When I drag and drop an image into a markdown editor with long content, it always goes to the top. ### Steps to Reproduce 1. Write text that requires dragging into the Markdown editor. 2. Drag and drop an image into the editor. ### Expected Behaviour When I drag and drop an image, the image gets uploaded and a link gets added and there is no movement on the screen. ### Screenshots or Additional Context _No response_ ### Browser Details chrome latest, edge latest, firefox latest ### Exact BookStack Version v24.12 (latest)
OVERLORD added the 🐛 Bug> Markdown Editor labels 2026-02-05 09:39:57 +03:00
Author
Owner

@techauthoruk commented on GitHub (Jan 3, 2025):

I have noticed this behaviour as well...

@techauthoruk commented on GitHub (Jan 3, 2025): I have noticed this behaviour as well...
Author
Owner

@ssddanbrown commented on GitHub (Jan 5, 2025):

Thanks for reporting @randi65535 and for confirming @techauthoruk.
I've adjusted the behaviour to re-apply the current scroll position on the update which would cause it to jump before, via commit ff6c5aaecb.

This will be part of the next patch release.

@ssddanbrown commented on GitHub (Jan 5, 2025): Thanks for reporting @randi65535 and for confirming @techauthoruk. I've adjusted the behaviour to re-apply the current scroll position on the update which would cause it to jump before, via commit ff6c5aaecbd470204136e8368eeed69d38d05d15. This will be part of the next patch release.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#5099