microsoft / microsoft/roosterjs

Paste inside of a nested table in a list issue

Open
#3,002 0 comments 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
Paste bug

To Reproduce

  1. Restore the below snapshot
<table style="box-sizing: border-box; border-collapse: collapse; border-spacing: 0px;" data-editing-info="{&quot;topBorderColor&quot;:&quot;#ABABAB&quot;,&quot;bottomBorderColor&quot;:&quot;#ABABAB&quot;,&quot;verticalBorderColor&quot;:&quot;#ABABAB&quot;,&quot;hasHeaderRow&quot;:true,&quot;hasFirstColumn&quot;:false,&quot;hasBandedRows&quot;:false,&quot;hasBandedColumns&quot;:false,&quot;bgColorEven&quot;:null,&quot;bgColorOdd&quot;:&quot;#ABABAB20&quot;,&quot;headerRowColor&quot;:&quot;#ABABAB&quot;,&quot;tableBorderFormat&quot;:0,&quot;verticalAlign&quot;:&quot;top&quot;}" 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="{&quot;applyListStyleFromLevel&quot;:false,&quot;orderedStyleType&quot;: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="{&quot;applyListStyleFromLevel&quot;: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="{&quot;applyListStyleFromLevel&quot;: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="{&quot;topBorderColor&quot;:&quot;#ABABAB&quot;,&quot;bottomBorderColor&quot;:&quot;#ABABAB&quot;,&quot;verticalBorderColor&quot;:&quot;#ABABAB&quot;,&quot;hasHeaderRow&quot;:false,&quot;hasFirstColumn&quot;:false,&quot;hasBandedRows&quot;:false,&quot;hasBandedColumns&quot;:false,&quot;bgColorEven&quot;:null,&quot;bgColorOdd&quot;:&quot;#ABABAB20&quot;,&quot;headerRowColor&quot;:&quot;#ABABAB&quot;,&quot;tableBorderFormat&quot;:0,&quot;verticalAlign&quot;:&quot;top&quot;}" 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>
  1. Copy this list
  2. Image
  3. Set cursor in inner table
  4. Image
  5. Paste

Expected behavior
Paste should happen inside of table

Instead this is the result

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.