Workspaceon(‘editor-drop’)

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

ParameterTypeDescription
name’editor-drop’
callback(evt: DragEvent, editor: Editor, info: MarkdownView | MarkdownFileInfo) any
ctxany(Optional)

Returns:

EventRef