Repository navigation
Closed
Labels
[Block] ListAffects the List Block[Feature] Paste[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended
Description
Description
When I paste a list from a Word document, it gets lost.
Example file
example.docx
Received HTML:
<h3><a name="_Hlk64885792">This is a headline?<o:p></o:p></a></h3>
<p class=MsoNormal><span style='mso-bookmark:_Hlk64885792'>This is a text:<o:p></o:p></span></p>
<p class=MsoListParagraphCxSpFirst style='text-indent:-18.0pt;mso-list:l0 level1 lfo1'><span
style='mso-bookmark:_Hlk64885792'><![if !supportLists]><span style='font-family:
Symbol;mso-fareast-font-family:Symbol;mso-bidi-font-family:Symbol'><span
style='mso-list:Ignore'>·<span style='font:7.0pt "Times New Roman"'>
</span></span></span><![endif]>One <o:p></o:p></span></p>
<p class=MsoListParagraphCxSpMiddle style='text-indent:-18.0pt;mso-list:l0 level1 lfo1'><span
style='mso-bookmark:_Hlk64885792'><![if !supportLists]><span style='font-family:
Symbol;mso-fareast-font-family:Symbol;mso-bidi-font-family:Symbol'><span
style='mso-list:Ignore'>·<span style='font:7.0pt "Times New Roman"'>
</span></span></span><![endif]>Two<o:p></o:p></span></p>
<p class=MsoListParagraphCxSpLast style='text-indent:-18.0pt;mso-list:l0 level1 lfo1'><span
style='mso-bookmark:_Hlk64885792'><![if !supportLists]><span style='font-family:
Symbol;mso-fareast-font-family:Symbol;mso-bidi-font-family:Symbol'><span
style='mso-list:Ignore'>·<span style='font:7.0pt "Times New Roman"'>
</span></span></span><![endif]>Three<o:p></o:p></span></p>
<span style='mso-bookmark:_Hlk64885792'></span>
<p class=MsoNormal><a name="_Hlk64885540">Lorem Ipsum. </a><o:p></o:p></p>
<p class=MsoNormal><span style='font-family:"Calibri",sans-serif;mso-ascii-theme-font:
minor-latin;mso-hansi-theme-font:minor-latin;mso-bidi-theme-font:minor-latin'><o:p> </o:p></span></p>Received plain text:
This is a headline?
This is a text:
• One
• Two
• Three
Lorem Ipsum.
Processed HTML piece:
<h3><a>This is a headline?</a></h3><p>This is a text:</p><p><a>Lorem Ipsum.</a></p>Metadata
Metadata
Assignees
Labels
[Block] ListAffects the List Block[Feature] Paste[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended

Activity
[-]List pasted from Word is lost[/-][+]List pasted from Word gets lost[/+]kathrynwp commentedon Jan 3, 2023
related: #46803
[-]List pasted from Word gets lost[/-][+]Raw Handling: List pasted from Word gets lost[/+]t-hamano commentedon Sep 16, 2023
I was able to reproduce the exact same problem using the Word file attached by @Soean.
However, when I created a new Word file on my machine and created the exact same content, it pasted correctly. Could it be related to the OS, Office version, or document settings on which the Word file was created? 🤔
f91f989a321bf2c827f6dd476b2bebbe.mp4
ellatrix commentedon Oct 6, 2023
Thanks for providing the received HTML. #55127 should fix this issue.