Foundry Virtual Tabletop - API Documentation - Version 14
    Preparing search index...

    Class ProseMirrorContentLinkPlugin

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

    Hierarchy (View Summary)

    Index

    Constructors

    Accessors

    Methods

    Constructors

    Accessors

    • get key(): PluginKey<any>

      A unique key for this plugin that can be used to identify a plugin instance in any given editor.

      Returns PluginKey<any>

    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 true | undefined

    • 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>