udecode / plate

A rich-text editor powered by AI
https://platejs.org
Other
12k stars 733 forks source link

Setting marks in table ignores cell selection #2263

Closed OliverWales closed 7 months ago

OliverWales commented 1 year ago

Description

When you select a cell range in a table and toggle a mark, the mark is toggled for all cells between the start and end of the selection, not just the selected range.

https://user-images.githubusercontent.com/33153339/223763339-3c13e735-575f-4c9e-92a5-5b9f00e9b2a1.mov

Steps

  1. Go to https://platejs.org
  2. Select a range of cells
  3. Toggle a mark
  4. More cells than the visual selection will be modified

Sandbox

https://platejs.org

Expectation

Only the selected cells have their marks toggled.

Funding

Fund with Polar

OliverWales commented 7 months ago

Fixed afaict