Pasting tables into the composer behaves oddly at times

https://github.com/discourse/discourse/pull/5389

4개의 좋아요

OK it is merged, let’s try pasting from Excel, latest version, Windows 10:

test 1
data 0.5
sample 3

Nice worked perfectly :+1: no extra image nonsense. Next step: make it a cool Markdown table! :wink:

6개의 좋아요

I actually used the paste-as-image all the time when explaining something or showing a complicated calculation. It does make sense.

e.g.:

But if you really want that you can go the intermediate route of GIMP etc. to get a bitmap.

Do you think even pasting it as markdown table can’t fulfill your needs?

3개의 좋아요

PR created for Paste as Markdown Table and merged.

Edit: testing with excel table in Windows 10

test 1
data 0.5
sample 3
17개의 좋아요

This is awesome, so magical :sparkler:

Thing Another Total
1 1 2
1 2 3
5

Can anyone test if pasting in from Numbers on Mac and Open Office / Libre Office works as well?

9개의 좋아요
AAAA ZZZZ
A 1
B 2
C 3
AVG 2

LibreOffice on Linux is :ok_hand:

This is crazy useful in some types of forums. AWESOME!

5개의 좋아요

Apple Numbers:

Table title
Row 1 Data 1
Row 2 Data 2
Row 3 Data 3

Google Docs:

Table title
Row 1 Data 1
Row 2 Data 2
Row 3 Data 3

6개의 좋아요

@vinothkannans looks like both of the above may need some refinements (Numbers and Google docs), do you have a Mac to test?

4개의 좋아요
Header 1 Header 2
Bold ⓭
Italics Yellow BG
Underlined RED

OK, looks like formatting is not included. A pity… But what a GREAT and WONDERFUL feature this is!!!

3개의 좋아요

Just Table in Microsoft Word:

Header 1 Header 2
Row 1 Row 1.1
Row 2 Row 2.2

Yay!

Whole doc from Word with heading and table:

My Heading

The following is an awesome table outlining what I just described:
Header 1 Header 2
Row 1 Row 1.1
Row 2 Row 2.2

Another paragraph of text after the table.

Nope.

1개의 좋아요

I don’t have Mac to test. I guess if I fix Google Docs it will be fixed there too.

Edit: Now it is working for Google Spreadsheet tables too. Can anyone re-test it on Apple Numbers?

test 1
data 0.5
sample 3
8개의 좋아요

A table inside Google Docs will not work though, as it doesn’t copy as tab-delimited rows, but one cell on its own row after another.

Yes. My commit is yet supporting pasting in Google Docs or Tables inside Document files. As I said, it is only for Excel, Spreadsheet and Numbers.

For Docs please follow other topic HTML/RTF pasting - #17

7개의 좋아요
RAID Array Space Calculator Type 1 Type 2
Number of Arrays of this type: 9 3
Number of Disks in this type Array: 10 4
Number of Spares in this type Array: 0 0
Disk Capacity: (GB) 10000 2000
RAID Level: raidz3 10-2x
Usable Capacity / Array: 70000 4000
Usable Capacity (Array Total): 630000 12000

My canonical example looks pretty damn good, and took 5 seconds to refine into exactly how I wanted it to look (merging top two lines, adding italics). Well done @vinothkannans :clap:

11개의 좋아요

I tried numbers before merging it was working

number sample:

Money In
Paycheck €4 000
Additional income €0
Total income €4 000
8개의 좋아요

클립보드에서 이미지와 텍스트가 모두 포함된 상태에서 붙여넣기를 하면 문제가 다시 발생하는 것 같습니다. LibreOffice에서 복사한 표로 여기에서 테스트해 보겠습니다(Excel에서도 비슷한 보고가 있었음):

synthfive@synth.com eurorack
image

작성기에 표를 붙여넣으면 마크다운 이미지 태그가 생성됩니다:

synthfive@synth.com	eurorack
![image|205x17](upload://6O1dCT74X45mQmlBp54nm0GnrZK.png)
2개의 좋아요

마이크로소프트 워드에서 작성한 테스트 케이스입니다

이것을 붙여넣으면 다음과 같은 결과가 나옵니다

그리고 일부 텍스트

순서를 반대로(텍스트 먼저) 바꿔서 시도해 봤는데… 결과는 동일합니다. 이미지와 텍스트 한 줄로 이루어진 문서 전체를 선택하기 위해 ctrl+a를 누르고 있습니다.