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.:
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 إعجابات

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

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
teurorack
image

يتم إنشاء علامة صورة markdown عند لصق الجدول في المحرر:

synthfive@synth.com
teurorack
![image|205x17](upload://6O1dCT74X45mQmlBp54nm0GnrZK.png)
إعجابَين (2)

إليك حالة الاختبار الخاصة بي في Microsoft Word

لصق ما أحصل عليه

ونص ما

دعني أعكس الترتيب (النص أولاً) وأرى.. نفس النتيجة. أضغط على ctrl+a لتحديد المستند بأكمله، وهو عبارة عن صورة وسطر نص.