Open TheBakwai1 opened 3 weeks ago
Hi @TheBakwai1, thx for your submit.
I did a quick try following your code and repro steps but things looked good at my side. Would you please share more about how you create the table or other information?
Hi @RuizhiSunMS ,
thanks for coming back to me. I just clicked Insert > Table > 3x3
And then entered One,
And then finally, just dragged a selection starting from just before the 'O' on the first line to just after the 'r' on the last line
I don't think there is anything else I'm doing.
Thanks, Steve
Weird. I still can't reproduce it. Looks what we have done are almost the same. I even added several more lines like the below. But all lines got found in xml. ooxml_lost_last_paragraph_not_repro_0.docx I uploaded my file, would you please share yours?
PS: I also tried with web, everything goes good. Would you please confirm getooxml() works fine on the web at your side?
I can repo it with your document as well. I can't see all your xml, some of it is hidden by the popup. is the Four included in the
This is the xml from the output from your document. Sorry, its a bit small, but the Four is outside of the table that has the three other paragraphs
This is the document I used One.docx
@TheBakwai1, I think I get your point. You mean you can get the last line but the last line is out of cell node in xml structure. If my understanding is right, then I'll go on. It has been put on our backlog #9491181, the team will investigate and we will reply to you as soon as there is any progress. Thank you for your patience. Sorry that I thought you said you couldn't get last line.
Hi @RuizhiSunMS, no worries :) I'm just glad it wasn't just me.
Thank you for your assistance.
I am using context.document.getSelection() to get a selection. From there I do a getOoxml(). I have noticed that when I select all the content in a single table cell, the final line / paragraph is copied into the Ooxml outside of the table.
Also, is it possible just to copy the content of a cell with the getOoxml and leave out the table structure?
Your Environment
Expected behavior
The final line / paragraph should be inside the table.
Current behavior
Steps to reproduce
Context
We want to be able to copy content based on the users selection, and it should copy as selected eg, all content is inside the table / cell
Ideally, selecting content in a single cell should only copy the content and not the table et al.