facebook / lexical

Lexical is an extensible text editor framework that provides excellent reliability, accessibility and performance.
https://lexical.dev
MIT License
17.37k stars 1.43k forks source link

Docs: Replace lingering references of GridSelection with TableSelection #5899

Open etrepum opened 2 weeks ago

etrepum commented 2 weeks ago

Follow-up to #5534 - there are still references to GridSelection in error messages, comments, and the docs. Two quick examples (not comprehensive!):

packages/lexical-table/src/LexicalTableUtils.ts

export function $insertTableRow__EXPERIMENTAL(insertAfter = true): void {
  const selection = $getSelection();
  invariant(
    $isRangeSelection(selection) || $isTableSelection(selection),
    'Expected a RangeSelection or GridSelection',
  );

packages/lexical-website/docs/concepts/selection.md

### `GridSelection`

GridSelection represents a grid-like selection like tables. It stores the key of the parent node where the selection takes place and the start and end points.