You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Export editor.moveBlocksUp() with a optional parameter blockId, or export another function replace. #1414
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?
changed the title [-]Export editor.moveBlocksUp() with a optional parameter blockId, or export another function replace.[/-][+]Export editor.moveBlocksUp() with a optional parameter blockId, or export another function replace.[/+]on Jun 19, 2025
Activity
YousefED commentedon Feb 18, 2025
Your suggestion of adding the optional parameter to
editor.moveBlocksUpmakes sense. I think this should be fairly easiy to implement. Could you create a PR for this if you need the functionality?[-]Export editor.moveBlocksUp() with a optional parameter blockId, or export another function replace.[/-][+]Export editor.moveBlocksUp() with a optional parameter blockId, or export another function replace.[/+]