Skip to content

Bug: Background color not preserved when pasting rows inside a table #8100

@aldoprogrammer

Description

@aldoprogrammer

Lexical version: latest (tested on Lexical Playground)

Steps To Reproduce

  1. Create a table in Lexical Playground.
  2. Fill some cells with data.
  3. Select a row (or multiple cells) and apply a background color.
  4. Copy the row.
  5. Paste the row inside the same table.

Demo

Link to code example

The current behavior

  • When pasting inside the same table, the background color is lost.
  • When pasting outside the table, the background color is preserved.

The expected behavior

  • Background color formatting should be preserved when pasting within the table, just like it works when pasting outside the table.

Impact of fix

  • Medium severity: affects table editing workflows where styling is needed.
  • Users who rely on background colors for row highlighting, spreadsheet-like tables, or visual organization would benefit.
  • Happens consistently with any table row that has background color applied.

Metadata

Metadata

Assignees

No one assigned

    Labels

    tablesRelates to Lexical Tables

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions