Pasting tables into the composer behaves oddly at times

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

4 Mi Piace

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 Mi Piace

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

e.g.:
image

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 Mi Piace

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 Mi Piace

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 Mi Piace
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 Mi Piace

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 Mi Piace

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

4 Mi Piace
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 Mi Piace

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 Mi Piace

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 Mi Piace

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

7 Mi Piace
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 Mi Piace

I tried numbers before merging it was working

number sample:

Money In
Paycheck €4 000
Additional income €0
Total income €4 000
8 Mi Piace

Incollare dagli appunti quando sono presenti sia un’immagine che del testo sembra causare nuovamente problemi. Lo testerò qui con una tabella copiata da LibreOffice (abbiamo avuto segnalazioni simili con Excel):

synthfive@synth.com
teurorack
image

Viene creato un tag immagine markdown quando incollo la tabella nell’editor:

synthfive@synth.com
teurorack
![image|205x17](upload://6O1dCT74X45mQmlBp54nm0GnrZK.png)
2 Mi Piace

Ecco il mio caso di test in Microsoft Word

Incollando ottengo

E del testo

Lasciami invertire l’ordine (prima il testo) e vedo… stesso risultato. Sto premendo ctrl+a per selezionare l’intero documento, che è un’immagine e una riga di testo.