Skip to content

Prevent Panel Tab Event from Dragging to Editor. #394

Answered by techbech
cemalgnlts asked this question in Q&A
Discussion options

You must be logged in to vote

This is really something you have to implement yourself. I'm not totally sure of how I would do it with the monaco editor, but the problem is that the monaco editor does accept dnd. A suggestion would be to overwritting the content of the default data transfer object and just leave the content empty. This is described here https://dockview.dev/docs/components/dockview#intercepting-drag-events. This would mean that just a empty string is inserted into the editor.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@techbech
Comment options

@cemalgnlts
Comment options

Answer selected by cemalgnlts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants