microsoft / microsoft/roosterjs
Paste inside of a nested table in a list issue
Open
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
Paste bug
To Reproduce
- Restore the below snapshot
<table style="box-sizing: border-box; border-collapse: collapse; border-spacing: 0px;" data-editing-info="{"topBorderColor":"#ABABAB","bottomBorderColor":"#ABABAB","verticalBorderColor":"#ABABAB","hasHeaderRow":true,"hasFirstColumn":false,"hasBandedRows":false,"hasBandedColumns":false,"bgColorEven":null,"bgColorOdd":"#ABABAB20","headerRowColor":"#ABABAB","tableBorderFormat":0,"verticalAlign":"top"}" id="table_0"><tbody><tr><th style="border-width: 1px; border-style: solid; border-color: rgb(171, 171, 171); background-color: var(--darkColor_rgb_171__171__171_, rgb(171, 171, 171)); width: 120px; height: 22px; box-sizing: border-box;"><div>Header A</div></th><th style="border-width: 1px; border-style: solid; border-color: rgb(171, 171, 171); background-color: var(--darkColor_rgb_171__171__171_, rgb(171, 171, 171)); width: 120px; height: 22px; box-sizing: border-box;"><div>Header B</div></th><th style="border-width: 1px; border-style: solid; border-color: rgb(171, 171, 171); background-color: var(--darkColor_rgb_171__171__171_, rgb(171, 171, 171)); width: 120px; height: 22px; box-sizing: border-box;"><div>Header C</div></th></tr><tr><td style="border-width: 1px; border-style: solid; border-color: rgb(171, 171, 171); width: 120px; height: 22px; box-sizing: border-box;"><div>Text</div></td><td style="border-width: 1px; border-style: solid; border-color: rgb(171, 171, 171); width: 120px; height: 22px; box-sizing: border-box;"><div>Text</div></td><td style="border-width: 1px; border-style: solid; border-color: rgb(171, 171, 171); width: 120px; height: 22px; box-sizing: border-box;"><div>Text</div></td></tr><tr><td style="border-width: 1px; border-style: solid; border-color: rgb(171, 171, 171); width: 120px; height: 22px; box-sizing: border-box;"><div>Text</div></td><td style="border-width: 1px; border-style: solid; border-color: rgb(171, 171, 171); width: 120px; height: 22px; box-sizing: border-box;"><div>Text</div></td><td style="border-width: 1px; border-style: solid; border-color: rgb(171, 171, 171); width: 120px; height: 22px; box-sizing: border-box;"><div>Text</div><ol start="1" data-editing-info="{"applyListStyleFromLevel":false,"orderedStyleType":1}" style="list-style-type: decimal;"><li style="font-family: Calibri; font-size: 11pt; color: var(--darkColor__000000, #000000);"><div>123123</div></li><li style="font-family: Calibri; font-size: 11pt; color: var(--darkColor__000000, #000000);"><div>213123</div></li><ol start="1" data-editing-info="{"applyListStyleFromLevel":true}" style="list-style-type: lower-alpha;"><li style="font-family: Calibri; font-size: 11pt; color: var(--darkColor__000000, #000000);"><div>123123</div></li><li style="font-family: Calibri; font-size: 11pt; color: var(--darkColor__000000, #000000);"><div>213123 </div></li><ol start="1" data-editing-info="{"applyListStyleFromLevel":true}" style="list-style-type: lower-roman;"><li style="font-family: Calibri; font-size: 11pt; color: var(--darkColor__000000, #000000);"><div>123123123123</div></li></ol><li style="font-family: Calibri; font-size: 11pt; color: var(--darkColor__000000, #000000);"><table data-editing-info="{"topBorderColor":"#ABABAB","bottomBorderColor":"#ABABAB","verticalBorderColor":"#ABABAB","hasHeaderRow":false,"hasFirstColumn":false,"hasBandedRows":false,"hasBandedColumns":false,"bgColorEven":null,"bgColorOdd":"#ABABAB20","headerRowColor":"#ABABAB","tableBorderFormat":0,"verticalAlign":"top"}" style="box-sizing: border-box; border-collapse: collapse; border-spacing: 0px;"><tbody><tr><td style="width: 120px; height: 22px; border-width: 1px; border-style: solid; border-color: rgb(171, 171, 171); vertical-align: top; box-sizing: border-box;"><div><br></div></td><td style="width: 120px; height: 22px; border-width: 1px; border-style: solid; border-color: rgb(171, 171, 171); vertical-align: top; box-sizing: border-box;"><div><br></div></td></tr><tr><td style="width: 120px; height: 22px; border-width: 1px; border-style: solid; border-color: rgb(171, 171, 171); vertical-align: top; box-sizing: border-box;"><div><br></div></td><td style="width: 120px; height: 22px; border-width: 1px; border-style: solid; border-color: rgb(171, 171, 171); vertical-align: top; box-sizing: border-box;"><div><br></div></td></tr></tbody></table><div><br></div></li></ol></ol></td></tr></tbody></table><div style="font-family: Calibri; font-size: 11pt; color: var(--darkColor__000000, #000000);">asdasdsad</div><div style="font-family: Calibri; font-size: 11pt; color: var(--darkColor__000000, #000000);"><br></div><div style="font-family: Calibri; font-size: 11pt; color: var(--darkColor__000000, #000000);"><br></div><div style="font-family: Calibri; font-size: 11pt; color: var(--darkColor_rgb_0__0__0_, rgb(0, 0, 0));">asdasdsad</div><div style="font-family: Calibri; font-size: 11pt; color: var(--darkColor__000000, #000000);"><br></div><div style="font-family: Calibri; font-size: 11pt; color: var(--darkColor__000000, #000000);"><br></div>
- Copy this list
- Set cursor in inner table
- Paste
Expected behavior
Paste should happen inside of table
Instead this is the result
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
Restore the provided snapshot and follow the reproduction steps to reproduce pasting the copied nested list into the inner table. Compare the observed result with the expected behavior, where the paste remains inside the table. No source file or test entry point is identified in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100