UNPKG

@firecms/core

Version:

Awesome Firebase/Firestore-based headless open-source CMS

10 lines (9 loc) 381 B
import React from "react"; import { EditorState } from "prosemirror-state"; import { EditorView } from "prosemirror-view"; export interface ProseMirrorContextType { state: EditorState | null; view: EditorView | null; } export declare const ProseMirrorContext: React.Context<ProseMirrorContextType>; export declare const useProseMirrorContext: () => ProseMirrorContextType;