@firecms/core
Version:
Awesome Firebase/Firestore-based headless open-source CMS
7 lines (6 loc) • 526 B
TypeScript
import { EditorState } from "prosemirror-state";
export declare function isMarkActive(state: EditorState, type: any): boolean;
export declare function isNodeActive(state: EditorState, type: any, attrs?: any): boolean;
export declare function getMarkAttributes(state: EditorState, type: any): any;
export declare function setMark(type: any, attrs?: any): (state: EditorState, dispatch?: (tr: any) => void) => boolean;
export declare function unsetMark(type: any): (state: EditorState, dispatch?: (tr: any) => void) => boolean;