diff --git a/src/components/editor/elements/element-helper.tsx b/src/components/editor/elements/element-helper.tsx index 6d967f1..529e893 100644 --- a/src/components/editor/elements/element-helper.tsx +++ b/src/components/editor/elements/element-helper.tsx @@ -37,7 +37,7 @@ export default function ElementHelper() { }; return ( - document.body && + typeof window !== "undefined" && createPortal( !editor.state.isPreviewMode && elementRef?.current && (