Skip to content

Table block: flesh out editor features #6923

@helen

Description

@helen

I'd like to discuss which features from the old TinyMCE table plugin should be recreated as functionality for the table block in Gutenberg and whether that should be in core or left to a plugin that extends the table block. This is coming from my review of an existing 10up plugin that adds the TinyMCE plugin to the classic WP editor and a determination that having such a forked code path in the same plugin probably doesn't make sense if table blocks are meant to be a core feature. We (10up) can help shepherd work on this block, since it's been low priority.

From 10up/mce-table-buttons#2:

Toolbar

  • Dropdown button with multiple flyouts
    • Cell
      • Merge table cells
        • NOTE: Has modal when nothing selected
      • Split table cell
    • Row
      • Insert row before (exists with icon)
      • Insert row after (exists with icon)
      • Delete row (exists with icon)
      • — SEPARATOR —
      • Cut table row
      • Copy table row
      • Paste table row before
      • Paste table row after
    • Column (all exist with icons)
      • Insert column before
      • Insert column after
      • Delete column

Sidebar

  • Table properties
    • Rows (this is currently only accessible when creating a new table)
    • Columns (this is currently only accessible when creating a new table)
    • Width
    • Height
    • Cell spacing
    • Cell padding
    • Border
    • Caption (checkbox)
    • Alignment (None, Left, Center, Right)
  • Cell properties
    • Width
    • Height
    • Cell type (None/Cell, Header cell)
    • Scope (None, Row, Column, Row group, Column group)
    • Alignment (None, Left, Center, Right)
  • Row properties
    • Row type (Header, Body[default], Footer)
    • Alignment (None, Left, Center, Right)
    • Height

Related Gutenberg issues/PRs:

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Block] TableAffects the Table Block[Feature] BlocksOverall functionality of blocks[Focus] Accessibility (a11y)Changes that impact accessibility and need corresponding review (e.g. markup changes).[Type] DiscussionFor issues that are high-level and not yet ready to implement.[Type] EnhancementA suggestion for improvement.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions