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

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

Open
lbhfuture opened this issue Feb 5, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@lbhfuture
Copy link

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 lbhfuture added the enhancement New feature or request label Feb 5, 2025
@YousefED YousefED self-assigned this Feb 17, 2025
@YousefED
Copy link
Collaborator

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 YousefED removed their assignment Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants