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