ProseMirrorCommand: ((state, dispatch, view) => boolean)

Type declaration

    • (state, dispatch, view): boolean
    • Parameters

      • state: EditorState

        The current editor state.

      • dispatch: function(Transaction)

        A function to dispatch a transaction.

      • view: EditorView

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

      Returns boolean