MCPcopy Index your code
hub / github.com/GrapesJS/react / useEditorMaybe

Function useEditorMaybe

packages/grapesjs-react/src/context/EditorInstance.tsx:53–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51 * Similar to useEditor, but in this case, the editor might be undefined.
52 */
53export const useEditorMaybe = () => {
54 return useEditorInstance().editor;
55};
56
57export default EditorInstanceContext;

Callers 1

WithEditorFunction · 0.85

Calls 1

useEditorInstanceFunction · 0.85

Tested by

no test coverage detected