Gutenberg: Table block has missing children and attributes

Created on 23 Mar 2018  路  5Comments  路  Source: WordPress/gutenberg

Issue Overview


Working with a fresh compile of 2.4 built today.

The table block has missing children that cannot be added from the visual editor, but they can be added through code view. Some of the elements missing are:

  • caption
  • summary
  • details
  • colspan and rowspan to group cells together
  • scope

While it is possible to add them from the HTML editor it's not easy or intuitive. The edit table drop down menu only offers ways to add and remove columns and rows... I would expect to see more table edit functionality under it.

Is this working as intended and not meant for complex tables?

Screenshots / Video


screen shot 2018-03-22 at 16 12 23
screen shot 2018-03-22 at 16 31 15

Related Issues and/or PRs

Todos

  • [ ] Tests
  • [ ] Documentation
[Type] Enhancement

Most helpful comment

Are there plans to extend gutenberg table blocks to a more robust implementation including the mentioned elements. At least colspan?

Alternatively, what is the preferred design for equivalent structures?

All 5 comments

This is working as intended and not meant for complex tables. It could be extended to do that but right now let's close this up as intended.

Then please explain that in the docs somewhere. If it's not meant for complex tables it should say so somewhere to set expectations accordingly...

@caraya absolutely this is something we can add to the docs. Would you like to make a PR for this yourself or have it added?

Are there plans to extend gutenberg table blocks to a more robust implementation including the mentioned elements. At least colspan?

Alternatively, what is the preferred design for equivalent structures?

Any way to stop Gutenber stripping out the valid HTML code colspan when converting to blocks. it is ridiculous and is destroying a site I am working on,
Surely you can add a td colspan count check first and if the colspan is correct then don't remove it.
Also please stop removing table class= it leaves it empty class=""

Was this page helpful?
0 / 5 - 0 ratings