WordPress / gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository.
https://wordpress.org/gutenberg/
Other
10.5k stars 4.2k forks source link

Discussion (Data): What is a block? Data model and API #1177

Closed dmsnell closed 6 years ago

dmsnell commented 7 years ago

We have an implementation of the block data structure but we don't know what it should be. We need a specification.

We have more than one implicit data structures:

We can do things to them:

This is a stub issue to be filled out. Some pieces exist in other issues.

BE-Webdesign commented 7 years ago

Beyond what is a block, we need to also answer how can they be combined, and transformed, ( or maybe that is the same thing ) and how do we represent that.

aduth commented 7 years ago

we need to also answer how can they be combined, and transformed, ( or maybe that is the same thing ) and how do we represent that.

Or if they can be.

Related: #878

nb commented 7 years ago

That’s a great point @BE-Webdesign. It’s a matter of time for somebody to try to build a block that composes other full blocks, not just the form components we offer (example: a template for a photoblog entry – an image, a playlist, and a “buy” button). Or even to try and build a drag & drop UI for building blocks. Composition will be crucial then.