microsoft / microsoft/roosterjs

Table formatting collapses on pasting

Open
#3,192 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
1.3k
Forks
190
Avg merge
1d 8h
Merged PRs (30d)
16

Description

Describe the bug
When pasting formatted table to a formatted table cell, the whole style of the table is reset.

To Reproduce
Steps to reproduce the behavior:

  1. Go to this sandbox
  2. Tripple click a cell to copy it
  3. Paste it to any other cell
  4. Styling of the table resets

Expected behavior
The styling should remain.

Screenshots
Here is a before/after pasting top right cell on the bottom right cell:
Image Image

Here is a diff screenshot of the content before and after:
Image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked CodeSandbox and reproduce the issue by copying a table cell and pasting it into another cell. Trace the paste handling for formatted table cells and verify that the table styling remains unchanged after the paste.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.