pasting a table row copies over the row above
Asked by Jon Jon:

When I copy and paste a table row, it pastes into the row above where the cursor is, copying over any existing content. Is this a known bug? Is there a workaround?

v7.13.0


Answers:
author: Jon Jon
body: [@Nam Ho](/t5/user/viewprofilepage/user-id/702435)

I can get the bug to recur by:

1. creating a table with multiple columns
2. merging a cell spanning several rows
3. putting a small table inside the merged cell
4. adding some content to rows above
5. adding a new row
6. copying one of the rows with content
7. trying to paste into the new empty row.

Not sure what part of is making it happen (for example whether you need the table within table) -- seems like a bug for the developers to troubleshoot (?)

comments: author: Jon Jon
body: works without the embedded table -- it's the merged cells that seem to cause the bug


author: Nam Ho
body: Hi [@Jon Jon](/t5/user/viewprofilepage/user-id/710445) ,

I've created table like you said but still can't replicate the issue.

![copy-row.gif](https://community.atlassian.com/t5/image/serverpage/image-id/162114iB10320A55D230975/image-size/large?v=v2&px=999 "copy-row.gif")

Could you send me HTML of your table ?

Which browser are you using?


author: Jon Jon
body: ```
<table class="confluenceTable"><colgroup><col><col></colgroup><tbody><tr><th class="confluenceTh"><br></th><th class="confluenceTh"><br></th></tr><tr><td class="confluenceTd"><br></td><td class="confluenceTd"><br></td></tr><tr><td class="confluenceTd">ASDFADS</td><td class="confluenceTd">ADSFADF</td></tr></tbody><colgroup><col><col></colgroup><tbody><tr><td class="confluenceTd">ASDFADS</td><td class="confluenceTd">ADSFADF</td></tr><tr><td class="confluenceTd"><br></td><td class="confluenceTd" rowspan="2"><br></td></tr><tr><td class="confluenceTd"><br></td></tr><tr><td class="confluenceTd"><br></td><td class="confluenceTd"><br></td></tr></tbody></table>
```

The \<col\>\<col\> doesn't look right to me ...

Chrome Version 93.0.4577.82 (Official Build) (64-bit) -- Linux


author: Jon Jon
body: ![tableBug.gif](https://community.atlassian.com/t5/image/serverpage/image-id/162139i3DB3D5CFC39C36E2/image-size/large?v=v2&px=999 "tableBug.gif")


author: Jon Jon
body: User-installed apps:

<br />

Issue Macro from Jira to Confluence  
Prometheus Exporter For Confluence  
Atlassian REST API Browser  
Confluence Copy Space Plugin  
Draw.io Confluence Plugin  
Confluence Cloud Migration Assistant  
Confluence Unknown Attachment Reconciliation Plugin  
Redirection Plugin  
Analytics for Confluence - Plugin  
Announcement Banner for Confluence  
Atlassian Troubleshooting and Support Tools  
Basic Glossary  
Bob Swift Atlassian Add-ons - Wiki Markup  
Confluence Mobile Plugin  
Confluence Source Editor  
HideElements for Confluence  
LaTeX and MathJax  
Markdown Macro for Confluence  
mermaid-plugin  
Numbered Headings  
PDF Macros for Confluence  
RefinedToolkit for Confluence  
ServiceRocket Utility Library  
smartics Integration for Piwik  
spectrum-api  
SSO for Atlassian Data Center  
System Plugin: Structure.Pages Helper  
Tableau for Confluence - Pro  
Team Calendars  
Tracking Plugin  
User Switcher for Confluence


author: Nam Ho
body: Hi [@Jon Jon](/t5/user/viewprofilepage/user-id/710445) ,

Unfortunately I still can't reproduce your problem.

However I guess you can use this workaround: don't use copy/paste functionality of browser, please use button "Copy row" and "Paste row" on editor toolbar.

Please let me know if it works for you.

![Screen Shot 2021-09-28 at 8.57.02 pm.png](https://community.atlassian.com/t5/image/serverpage/image-id/162410iB7587E99FEEF3467/image-size/large?v=v2&px=999 "Screen Shot 2021-09-28 at 8.57.02 pm.png")


author: Jon Jon
body: Yes -- that works! Still a bit of a mystery -- will have to ask the admins if I can try it in safe mode to see if the bug still happens...


author: Nam Ho
body: I notice your table is inside a page layout. Try reproducing the issue without page layout to see if it still happens.


author: Jon Jon
body: Hi [@Nam Ho](/t5/user/viewprofilepage/user-id/702435) ,

Yes -- still happens without a layout. Also, I tried on our test instance, in safe mode -- still happens.   

Just to confirm, this is the Server (not Cloud) version 7.13.0


author: Jon Jon
body: Ah .. doesn't happen on a new page. The table in question has been edited a fair bit, rows added, removed, merged, moved ... So I guess it's corrupted somehow. Is there any way to see the markup behind it ?

comments: author: Jon Jon
body: I used Confluence a long time ago -- looks like in the latest versions the markup gets converted to HTML and becomes no longer viewable/editable ? Anyway, the rtf / HTML source looks ok to me (the right number of tags and closing tags).

The complexity of the table is in a section where the last cell in a row spans 7 rows, and that cell has another table inside it -- but the HTML for it all looks fine to me. But the bug still recurs when copying and pasting a row above that section...


author: Jon Jon
body: Ah -- just tried a new page -- the problem doesn't recur. The table in question has been edited a fair bit, rows added, merged, moved ...


author: Nam Ho
body: Hi [@Jon Jon](/t5/user/viewprofilepage/user-id/710445) ,

Do you have a video recording what was happening?

Cheers.

comments: author: Jon Jon
body: no -- it's basically like this:

Table Row 1

Table Row 2

Table Row 3

Blank new row

If I copy table row 1 and put the cursor in in the first cell of blank new row, when I paste, instead of the copy appearing in the blank row, it overwrites the row above (row 3).


author: Nam Ho
body: hmm, strange, I can't reproduce it on 7.13.0

Could you describe in detail how you did it?

Do you use shortcut to copy/paste?

Is there any third party plugin installed on your Confluence instance?

Which browser do you use?

Are you always able to replicate the issue even on a blank new page?


Tags: confluence-server

server