UNPKG

@atlaskit/editor-plugin-base

Version:

Base plugin for @atlaskit/editor-core

5 lines (4 loc) 312 B
import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state'; import type { EditorView } from '@atlaskit/editor-prosemirror/view'; export type CommandDispatch = (tr: Transaction) => void; export type Command = (state: EditorState, dispatch?: CommandDispatch, view?: EditorView) => boolean;