Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
*/
53
export const useEditorMaybe = () => {
54
return useEditorInstance().editor;
55
};
56
57
export default EditorInstanceContext;
Callers
1
WithEditor
Function · 0.85
Calls
1
useEditorInstance
Function · 0.85
Tested by
no test coverage detected