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

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

Closed
randi65535 opened this issue Jan 2, 2025 · 2 comments

Comments

@randi65535
Copy link

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)

@techauthoruk
Copy link

I have noticed this behaviour as well...

@ssddanbrown
Copy link
Member

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 ff6c5aa.

This will be part of the next patch release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants