diff --git a/src/components/admin/ContentEditor/ContentEditor.tsx b/src/components/admin/ContentEditor/ContentEditor.tsx index 8650b5cf..23c16494 100644 --- a/src/components/admin/ContentEditor/ContentEditor.tsx +++ b/src/components/admin/ContentEditor/ContentEditor.tsx @@ -44,7 +44,8 @@ export default function ContentEditor(props: Props) { const [showHelp, setShowHelp] = useState(false); const [navLinks, setNavLinks] = useState(null); - + let elementOnlyMode = false; + if (props.blockId && container?.sections?.length===1 && container?.sections[0]?.id==="") elementOnlyMode = true; const zones:any = { cleanCentered: ["main"], @@ -265,7 +266,7 @@ export default function ContentEditor(props: Props) { {showHelp && getHelp()} - {showAdd && { setShowAdd(false); }} draggingCallback={() => setShowAdd(false)} />} + {showAdd && { setShowAdd(false); }} draggingCallback={() => setShowAdd(false)} />} {editElement && { setEditElement(null); loadData(); }} onRealtimeChange={handleRealtimeChange} globalStyles={props.globalStyles} />} {editSection && { setEditSection(null); loadData(); }} globalStyles={props.globalStyles} />}