BlockNote icon indicating copy to clipboard operation
BlockNote copied to clipboard

Export editor.moveBlocksUp() with a optional parameter blockId, or export another function replace.

Open lbhfuture opened this issue 10 months ago • 1 comments

Is your feature request related to a problem? Please describe. I want to add Move Up and Move Down item in DragHandleMenu, but editor.moveBlocksUp() can only move up the selected blocks or current cursor, and the invoked function in moveBlocksUp(editor) are not exported. So can you export editor.moveBlocksUp() and editor.moveBlocksDown() with a optional parameter blockId, or export another function replace?

Describe the solution you'd like Export editor.moveBlocksUp() and editor.moveBlocksDown() with a optional parameter blockId, or export another function replace.

Describe alternatives you've considered

Additional context

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

lbhfuture avatar Feb 05 '25 11:02 lbhfuture

Your suggestion of adding the optional parameter to editor.moveBlocksUp makes sense. I think this should be fairly easiy to implement. Could you create a PR for this if you need the functionality?

YousefED avatar Feb 18 '25 20:02 YousefED