Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Hierarchy

Index

Constructors

Methods

Constructors

Methods

  • _onDrop(view: EditorView, event: DragEvent, slice: Slice, moved: boolean): boolean
  • 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(schema: any, options?: {}): Plugin<any>
  • Build the plugin.

    Parameters

    • schema: any

      The ProseMirror schema to build the plugin against.

    • options: {} = {}

      Returns Plugin<any>