A class responsible for handling the dropping of Documents onto the editor and creating content links for them.

Hierarchy (view full)

Constructors

Methods

Constructors

Methods

  • Protected

    Handle a drop onto the editor.

    Parameters

    • view: EditorView

      The ProseMirror editor view.

    • event: DragEvent

      The drop event.

    • slice: Slice

      A slice of editor content.

    • moved: boolean

      Whether the slice has been moved from a different part of the editor.

    Returns boolean

  • Build the plugin.

    Parameters

    • schema: any

      The ProseMirror schema to build the plugin against.

    • options: {} = {}

      Additional options to pass to the plugin.

      Returns Plugin<any>

      Abstract