medium-proeditor
Version:
A powerful & customizable Medium-style rich text editor
10 lines • 483 B
TypeScript
import type { MarkType } from 'prosemirror-model';
import type { EditorState, Transaction } from 'prosemirror-state';
declare const toggleMark: (type: MarkType, attributes?: Record<string, any>, options?: {
/**
* Removes the mark even across the current selection. Defaults to `false`.
*/
extendEmptyMarkRange?: boolean;
}) => (state: EditorState, dispatch?: (tr: Transaction) => void) => boolean;
export default toggleMark;
//# sourceMappingURL=toggleMark.d.ts.map