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

    Type Alias ProseMirrorCommand

    ProseMirrorCommand: (
        state: EditorState,
        dispatch: Function,
        view: EditorView,
    ) => boolean

    Type Declaration

      • (state: EditorState, dispatch: Function, view: EditorView): boolean
      • Parameters

        • state: EditorState

          The current editor state.

        • dispatch: Function

          A function to dispatch a transaction.

        • view: EditorView

          Escape-hatch for when the command needs to interact directly with the UI.

        Returns boolean