BlockNote icon indicating copy to clipboard operation
BlockNote copied to clipboard

Move an image doesn't work with drag and drop

Open virgile-dev opened this issue 8 months ago • 2 comments

What’s broken?

When I try to move a block containing an image using drag and drop I get 2 errors

  • the toolbar opens (not my intention, I didn't click on it)
  • the image is not dropped to where it was highlighted (in light blue). It stays in its location Currently the only way I can move images is by
  • using the keyboard shortcut to move a block ctrl + maj + up / down
  • or ctrl + x and the ctrl + v

What did you expect to happen?

I would expect the image toolbar to open only when hovering over it when on desktop and taping on it on mobile. it should move to the highlighed location in light blue.

Steps to reproduce

https://github.com/user-attachments/assets/8742433b-34ba-4400-9462-9816c469f0a2

BlockNote version

No response

Environment

firefox 148 en NixOS 64bit

Additional context

tested on https://www.blocknotejs.org/demo#rlgys

Contribution

  • [ ] I'd be interested in contributing a fix for this issue

Sponsor

  • [x] I'm a sponsor and would appreciate if you could look into this sooner than later 💖

virgile-dev avatar Mar 30 '26 16:03 virgile-dev

Hi, I'm working on this now for a class open-source assignment!

miadnguyen avatar Apr 04 '26 15:04 miadnguyen

Hi, I've reproduced this locally and on Firefox (as well as the demo link). When dragging an image block, the formatting toolbar opens mid-drag, but the drop itself works. Can you share anything else that might help me reproduce the drag function not working?

miadnguyen avatar Apr 04 '26 16:04 miadnguyen