diff --git a/packages/www/components/editor.tsx b/packages/www/components/editor.tsx
index 73c840bda..949519cf2 100644
--- a/packages/www/components/editor.tsx
+++ b/packages/www/components/editor.tsx
@@ -1,9 +1,16 @@
import { TLDraw } from '@tldraw/tldraw'
+import React from 'react'
interface EditorProps {
id?: string
}
export default function Editor({ id = 'home' }: EditorProps) {
- return
+ const handleMount = React.useCallback((tlstate) => {
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
+ // @ts-ignore
+ window.tlstate = tlstate
+ }, [])
+
+ return
}