gerhard
(Gerhard Schlager)
January 13, 2022, 8:04pm
55
I think @simon meant that the same clipboard content is available as text and image.
I just tested it by copying multiple cells out of LibreOffice Calc. It puts tab delimited text and an image of the cells into the clipboard. I assume Microsoft Excel does the same.
The result is this:
column A column B
a1 b1
a2 b2
![image|256x77](upload://1CSBoxgR28OkiAGuNNGipzSJTlJ.png)
3 Likes
So this is specific to tables? If so this topic has a very incorrect and misleading title, which is extremely annoying…
edit: fixed.
3 Likes
jomaxro
(Joshua Rosenfeld)
January 13, 2022, 9:57pm
57
Yeah, I’ve been seeing this with tables .
1 Like
sam
(Sam Saffron)
February 2, 2022, 1:50am
58
This could possibly be related to the uppy changes @martin , can you have a look?
2 Likes
martin
(Martin Brennan)
February 3, 2022, 6:39am
60
I have a PR to fix this, will merge it in tomorrow:
discourse:main
← discourse:issue/fix-markdown-table-pasting-uppy
opened 05:22AM - 03 Feb 22 UTC
When changing to uppy for file uploads we forgot to add
these conditions to the… paste event from 9c96511ec47bf0eb450a0b7e15738d284ee3761f
Basically, if you are pasting more than just a file (e.g. text,
html, rtf), then we should not handle the file and upload it, and
instead just paste in the text. This causes issues with spreadsheet
tools, that will copy the text representation and also an image
representation of cells to the user's clipboard.
This also moves the paste event for composer-upload-uppy to the
element found by the `editorClass` property, so it shares the paste
event with d-editor (via TextareaTextManipulation), which makes testing
this possible as the ember paste bindings are not picked up unless both
paste events are on the same element.
Edit: This PR has now been merged.
6 Likes