collective / volto-hydra

A volto addon to let you edit content in realtime when you have many frontends written in any framework
2 stars 4 forks source link

I can add a block inside a container #71

Open djay opened 5 months ago

djay commented 5 months ago

Quanta doesn't have a design for this as it is not not designed to support container blocks.

In most cases you would click on a block inside the container and add before or after

But what about when the container is empty?

Proposed solution

Create an empty default block when the last block is deleted from a container

pros

Other solutions considered

Ways to support it could be

djay commented 3 months ago

The more I've thought about this I think the current volto way of doing it is best. A container should never be empty. There should always be a default empty block automatically added if the last block is removed. It means there is no extra button needed and no confusion between the two buttons. If text block is not the default then perhaps there could be a ghost block that invites you to pick like the grid block currently has

djay commented 3 months ago

@MAX-786 I've put my ideas on how it should work into the readme in the PR - https://github.com/collective/volto-hydra/pull/127