English
Appearance
type Command = (state, dispatch?, view?) => boolean;
A ProseMirror command. Command factories such as toggleBold() return one; pass it to editor.run() or editor.can().
toggleBold()
editor.run()
editor.can()
state
EditorState
dispatch?
tr
void
view?
EditorView
boolean