Is there a way to disallow drag handle to drop nodes into other nodes? #5622
Unanswered
jofri
asked this question in
Questions & Help
Replies: 1 comment
-
only allow them to be rearranged on the top level! Me too |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using Tiptap drag-handle in my Next.js app to allow users to move around block quotes in the editor. I'm calling block quotes "scenes" in my editor.
However, moving block quotes around has two issues:
When dropping a block quote outside of another block quote (in the doc), the block quote disappears and the node becomes a paragraph.
I don't want to allow the block quote to be dragged into another block quote / list or other node - only allow them to be rearranged on the top level.
Is there any way to obtain this behaviour on any pointes for how to configure the drag handle extension?
Kind regards,
Beta Was this translation helpful? Give feedback.
All reactions