Prevent Panel Tab Event from Dragging to Editor. #394
-
Hi, The title is not very descriptive but that is my question: Screen.recording.2023-11-18.12.52.37.webm |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
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. |
Beta Was this translation helpful? Give feedback.
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.