microsoft / microsoft/roosterjs
Table formatting collapses on pasting
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:
- Go to this sandbox
- Tripple click a cell to copy it
- Paste it to any other cell
- 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:
Here is a diff screenshot of the content before and after:
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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