Excel 365 copy/paste to discourse not creating table

Hello,

So I’ve just upgraded from Office 2013 to Office 365.
Now when I copy cells from Excel 365 to Discourse I get an image and plain text.
When I copy from Excel 2013 I get Discourse cells in my post, I liked this but can’t get that now with 365.
Any clue how I can fix this?

Excel 365:
image Some test
of cells

Excel 2013:

some test
of cells
4 Likes

I believe @vinothkannans has fixed similar issues in the past, the tricky thing is that office loves putting lots and lots of different formats in the clipboard and it is hard to find the right one.

4 Likes

Here’s my version

Demo sheet

Result of pasting

![image|241x69](upload://6hbMkHa919qp5RLB4oJoa6OdORz.png) some test of cells

|image some |test|
|—|---|
|of |cells|

You should revisit this @vinothkannans

4 Likes

This issue should be fixed by the open PR of @joffreyjaffeux.

It is having a markdown table and image combination :confused:
Is it a different copy/paste issue from the above one?

4 Likes

That is the Windows 10 behavior. No idea what Mac behavior is.

6 Likes

I’ve seen this issue from Excel for months. Google Drive works just fine, so I’ve been copying from Excel to Google to Discourse when I need to paste a table. Pretty sure there’s an open bug for this, can’t find it though.

8 Likes

I think Windows likes putting stuff in lots of different clipboards sections associated to various types. Our JS piece needs to be able to handle that and only ever pick a single clipboard section.

We already try only to pick one format per:

But maybe somehow we are also pasting the image here as well and should have some code that says… hi… I got text here… ignore the image.

4 Likes