Workspace.on(‘editor-drop’) method
Triggered when the editor receives a drop event. Check for evt.defaultPrevented before attempting to handle this event, and return if it has been already handled. Use evt.preventDefault() to indicate that you’ve handled the event.
Signature:
on(name: 'editor-drop', callback: (evt: DragEvent, editor: Editor, info: MarkdownView | MarkdownFileInfo) => any, ctx?: any): EventRef;Parameters
| Parameter | Type | Description |
|---|---|---|
name | ’editor-drop’ | |
callback | (evt: DragEvent, editor: Editor, info: MarkdownView | MarkdownFileInfo) ⇒ any | |
ctx | any | (Optional) |
Returns: