@firecms/core
Version:
Awesome Firebase/Firestore-based headless open-source CMS
17 lines (16 loc) • 610 B
TypeScript
import { EditorState, Plugin } from "prosemirror-state";
import { EditorView } from "prosemirror-view";
export interface UseProseMirrorOptions {
content?: any;
plugins?: Plugin[];
editable?: boolean;
onMarkdownContentChange?: (content: string) => void;
onJsonContentChange?: (content: any | null) => void;
onHtmlContentChange?: (content: string) => void;
version?: number;
}
export declare function useProseMirror(options: UseProseMirrorOptions): {
mountRef: import("react").RefObject<HTMLDivElement | null>;
view: EditorView | null;
editorState: EditorState | null;
};