chore: Editor refactor (#3286)
* cleanup * add context * EventEmitter allows removal of toolbar props from extensions * Move to 'packages' of extensions Remove EmojiTrigger extension * types * iteration * fix render flashing * fix: Missing nodes in collection descriptions
This commit is contained in:
8
app/editor/components/EditorContext.tsx
Normal file
8
app/editor/components/EditorContext.tsx
Normal file
@@ -0,0 +1,8 @@
|
||||
import * as React from "react";
|
||||
import { Editor } from "../";
|
||||
|
||||
const EditorContext = React.createContext<Editor>({} as Editor);
|
||||
|
||||
export const useEditor = () => React.useContext(EditorContext);
|
||||
|
||||
export default EditorContext;
|
||||
Reference in New Issue
Block a user