medium-proeditor
Version:
A powerful & customizable Medium-style rich text editor
14 lines • 582 B
TypeScript
import type { MarkType } from 'prosemirror-model';
import type { EditorState, Transaction } from 'prosemirror-state';
declare const unsetMark: (type: MarkType, options?: {
/**
* Removes the mark even across the current selection. Defaults to `false`.
*/
extendEmptyMarkRange?: boolean;
/**
* Fully remove mark even if the selection includes part of it. Defaults to `false`.
*/
fullyRemoveMark?: boolean;
}) => (state: EditorState, dispatch?: (tr: Transaction) => void) => boolean;
export default unsetMark;
//# sourceMappingURL=unsetMark.d.ts.map