diff --git a/packages/react/EditorProvider.tsx b/packages/react/EditorProvider.tsx index 19ff6c2..abc6130 100644 --- a/packages/react/EditorProvider.tsx +++ b/packages/react/EditorProvider.tsx @@ -3,8 +3,8 @@ import { EditorState, Plugin } from 'prosemirror-state' import { EditorProps, EditorView } from 'prosemirror-view' import React, { createContext, useContext, useState } from 'react' -const EditorStateContext = createContext(null) -const EditorViewContext = createContext(null) +export const EditorStateContext = createContext(null) +export const EditorViewContext = createContext(null) export const useEditorState = (): EditorState => { const context = useContext(EditorStateContext)