# UnifiedWriter v5.31.2 Table Inline Editing / Selection Fix

## Summary

v5.31.2 improves the table editing foundation introduced in v5.31.0/v5.31.1.
The main goal is to keep the Model-first architecture while making table cells usable in a document-editor style UI.

## Fixes

- Table cell inline editing no longer loses continuous typing after the first character.
- Double-clicking a selected cell starts inline editing directly inside the cell.
- Typing into a selected cell starts inline editing and replaces the selected cell content, similar to document/table editors.
- Enter commits the inline edit; Escape cancels it.
- Backspace/Delete on a selected table cell clears the active cell.
- Table selection now supports:
  - cell selection,
  - row selection,
  - column selection,
  - rectangular range selection by drag or Shift-click.
- Row/column insert/delete operations respect row/column/range selection where possible.
- Undo snapshots now preserve `tableMeta` and table selection metadata.

## Design note

The inline cell editor temporarily uses `contenteditable` only inside the active table cell as an edit buffer.
The visible DOM is still not the canonical document state.  On commit, the edited text is written back into the table block in `DocumentModel`, then the normal renderer rebuilds the page surface.

This is intentionally different from returning the whole document body to browser-native `contenteditable` editing.

## Current limitations

- Cell range copy/paste is not yet implemented.
- Cell merge/split is not yet implemented.
- Border, background, width and height editing are still future table property work.
- Rich text inside a cell is reduced to plain text during inline editing; rich cell content requires a nested cell model in a later version.
