@atlaskit/editor-core
Version:
A package contains Atlassian editor core functionality
4 lines (3 loc) • 353 B
TypeScript
import { EditorState, Transaction, EditorView } from '../../prosemirror';
export declare const enterKeyCommand: (state: EditorState<any>, dispatch: (tr: Transaction) => void) => boolean;
export declare const toggleList: (state: EditorState<any>, dispatch: (tr: Transaction) => void, view: EditorView, listType: "bulletList" | "orderedList") => boolean;