craft.js icon indicating copy to clipboard operation
craft.js copied to clipboard

Multiple frames inside of an editor

Open Chepush opened this issue 5 months ago • 1 comments

Is it possible to have multiple <Frame> components inside of the <Editor>?

I've tried to achieve something similar to what Framer has (screenshot attached) with multiple frames with different widths. However, the behavior breaks when I put multiple frames into one editor. Drag & Drop indicators are displayed only on the last frame. Also, the "node" returned from the useNode() hook is always the one from the last frame. Is there a workaround for such case?

image

Chepush avatar Jan 14 '24 13:01 Chepush

Currently no, and it will take quite a bit of work to support this unfortunately

prevwong avatar Jan 14 '24 13:01 prevwong