How to disable drop functionality

How do i disable drop functionality so the editor won’t accept any drop event/content from outside the editor. In the current project i use draggable component, I noticed that i can drag my component into the editor which is not what i needed.

You could probably do this by adding a drop DOM event handler that calls preventDefault and returns true when the view’s dragging property is null.

1 Like

ah, preventDefault how could i forget that… thanks @marijn