()
| 67 | * Context used to keep the editor instance once initialized |
| 68 | */ |
| 69 | export const useEditorOptions = () => { |
| 70 | const context = useContext(EditorOptionsContext); |
| 71 | |
| 72 | if (!context) { |
| 73 | throw new Error('useEditorOptions must be used within EditorOptionsProvider'); |
| 74 | } |
| 75 | |
| 76 | return context; |
| 77 | }; |
| 78 | |
| 79 | // export const useEditor = () => { |
| 80 | // // TODO ensure editor is used inside provider |
no outgoing calls
no test coverage detected