BlockNote
BlockNote copied to clipboard
Export editor.moveBlocksUp() with a optional parameter blockId, or export another function replace.
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 💖
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?