udecode / plate

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

[P-168] Copying table cell range copies cells outside of selection #2137

Closed OliverWales closed 1 year ago

OliverWales commented 1 year ago

Description

Copying and pasting a range of cells from a Plate table to a spreadsheet includes additional cells not selected and does not preserve table structure.

https://user-images.githubusercontent.com/33153339/214021243-db4c4f74-01e0-4cb9-8e2b-b9e887ea3904.mov

Steps

  1. Create editor with the Table plugin
  2. Select a range of cells and copy it
  3. Paste into e.g. Google Sheets
  4. Cells are pasted into a single column + include cells outside of the visual cell selection

Sandbox

https://platejs.org

Expectation

Only the selected cells are copied + the structure is preserved on paste.

Environment

P-168

Funding

Fund with Polar

OliverWales commented 1 year ago

Giving this a go today 💪🏻