online icon indicating copy to clipboard operation
online copied to clipboard

Unable to copy HTML format table to PPT document

Open gulixiang opened this issue 1 year ago • 1 comments

Describe the Bug

I opened a webpage containing a table, copied the HTML table content (the copied content should actually be similar to <table><tr><td>xxxx</td></tr></table>), and then pasted it. I found that I could correctly paste the table data into Word and Excel, and the content and cross row and cross column information would not be lost. But when pasted into a PPT format document, the content will become a text box shape and will not create a table

Expected Behavior

I hope the table data copied from the webpage can be pasted into the PPT document and displayed in the form of a table

Actual Behavior

What is actually pasted into the PPT document is a text box, not a table

Screenshots

If applicable, add screenshots to help explain your problem.

Desktop

(Please complete the following information) 23.05.9.3.6 Windows 10 Chrome 127.0

gulixiang avatar Aug 15 '24 01:08 gulixiang

I can reproduce this behavior. When doing the same in desktop Collabora Office, then you have 2 cases. The default is to go via RTF export in Writer and RTF import in Impress, then a table shape gets created when copy&pasting. When using Ctrl-Shift-V in Impress and selecting HTML, we get the same problem as what you describe.

So this is an unfortunate combination of browsers not providing RTF on their clipboard (see https://github.com/w3c/clipboard-apis/issues/210 ) and that our Impress HTML import doesn't have as good table support as the RTF one.

vmiklos avatar Aug 15 '24 06:08 vmiklos