Fix Multi-Cell Copy/Paste Functionality in GitLab Tables
<details> <summary> Everyone can contribute. [Help move this issue forward](https://handbook.gitlab.com/handbook/marketing/developer-relations/contributor-success/community-contributors-workflows/#contributor-links) while earning points, leveling up and collecting rewards. </summary> - [Close this issue](https://contributors.gitlab.com/manage-issue?action=close&projectId=278964&issueIid=585267) </details> ### **Description** As a user I want to be able to reliably copy and paste multiple cells (such as entire rows, columns, or selected cell ranges) within tables in the **rich text editor** in GitLab so that I can efficiently transfer and update tabular data without losing structure or content. ### **Problem Statement** Currently, when copying and pasting multiple cells in tables within the **rich text editor**, the tabular structure is not maintained. Instead of spreading the copied content across the corresponding columns and rows, all content is pasted as markdown into a single selected cell. **Current behavior (as demonstrated by @vanessaotto):** When a user copies a range of cells and pastes into a table in the rich text editor, the content is converted to markdown and inserted into the single selected cell rather than being distributed across the appropriate cells. ![Screen_Recording_2026-03-27_at_14.16.30](/uploads/2f264c61c9014fc44a710b30f13be376/Screen_Recording_2026-03-27_at_14.16.30.mov){width="900" height="585"} ### **Expected Behavior** * When users copy a column of values and paste into a table in the rich text editor, the content should spread across the corresponding column cells, maintaining cell boundaries * Content remains properly aligned in the target cells ### **Overflow Behavior Decision** When a pasted row has more cells than the remaining columns in the target table, the preferred approach is to **auto-add new columns** to accommodate the extra cells. This mirrors the behavior of the competitive solution the customer is migrating from. **Competitive solution behavior for reference (recording by @mmacfarlane):** The recording below shows how the competitor handles table copy/paste across varying table sizes, automatically expanding the table to fit the pasted content: ![Screen Recording 2026-03-30 at 2.51.08 PM.mov](/uploads/fffb5fb5f06086928373be4fef5f8b8f/Screen_Recording_2026-03-30_at_2.51.08_PM.mov){width=736 height=600} **POC by @vanessaotto:** A proof-of-concept demonstrating this auto-add columns technique is available here: https://tiptap-copy-past-table-cells-36e131.gitlab.io/ ![Screen_Recording_2026-03-30_at_12.15.44](/uploads/86bcc3b4179e122c351556870abc6b1b/Screen_Recording_2026-03-30_at_12.15.44.mov){width=900 height=579}
issue