Project

General

Profile

Actions

Feature #1575

closed

Toolbar button to insert a table

Added by Konrad Kosmowski almost 16 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Text formatting
Target version:
Start date:
2008-07-04
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed

Description

When you open the formatting help popup it lacks info about tables. AFAIK with textile markup it is possible to create tables using markup like that:

|cell|cell|cell|
|another cell|merged cell||

Output:

cell cell cell
another cell another cell another cell

So as you see it is possible to create tables - too bad that help does not mention it - I needed to look after textile documentation to get that info. For me it is no problem but I manage Redmine for less technical people and they probably dont even look at help but strictly at the toolbar - when there is no table icon it means there is no tables. ;)


Files

feature-1575.patch (4.58 KB) feature-1575.patch Mizuki ISHIKAWA, 2020-02-19 06:17
use-table-generator.gif (364 KB) use-table-generator.gif Mizuki ISHIKAWA, 2020-02-19 06:21
image.png (156 Bytes) image.png Hiroyuki ENDO, 2020-02-21 07:17
use-table-icon.png (46 KB) use-table-icon.png Mizuki ISHIKAWA, 2020-02-21 07:30
0001-feature-1575-patch-with-table-icon.patch (5.73 KB) 0001-feature-1575-patch-with-table-icon.patch Mizuki ISHIKAWA, 2020-02-21 07:35
0001-feature-1575-patch-with-table-icon.patch (5.73 KB) 0001-feature-1575-patch-with-table-icon.patch Mizuki ISHIKAWA, 2020-02-21 08:16
Screen Shot 2020-02-26 at 9.27.58 AM.png (31.1 KB) Screen Shot 2020-02-26 at 9.27.58 AM.png Firefox Kevin Fischer, 2020-02-26 01:33
Screen Shot 2020-02-26 at 9.32.36 AM.png (27.3 KB) Screen Shot 2020-02-26 at 9.32.36 AM.png Chrome Kevin Fischer, 2020-02-26 01:33
0002-Firefox-support.patch (711 Bytes) 0002-Firefox-support.patch Mizuki ISHIKAWA, 2020-02-26 03:19
0003-IE11-support.patch (1.91 KB) 0003-IE11-support.patch Mizuki ISHIKAWA, 2020-02-26 03:19
table-icon-1.png (20.3 KB) table-icon-1.png Go MAEDA, 2020-03-03 10:53
table-icon-2.png (21.3 KB) table-icon-2.png Go MAEDA, 2020-03-03 10:53

Related issues

Related to Redmine - Feature #12734: Add table reference to textile helpClosedJean-Philippe Lang

Actions
Actions #1

Updated by Paul Rivier almost 16 years ago

I agree, but what would a "table" button insert ? Two '|' ? We would probably need something a bit more evolved for such a button, such as a pop-up window asking for
  • number of rows
  • number of columns
  • use headers ? (checkbox)

Once the template syntax is inserted, it probably becomes more natural to fill the cells and tweak it by hand.

Actions #2

Updated by Konrad Kosmowski almost 16 years ago

Paul Rivier wrote:

I agree, but what would a "table" button insert ?

It could work like in MS Word or OpenOffice.

Actions #3

Updated by Jean-Philippe Lang over 15 years ago

  • Tracker changed from Defect to Feature
Actions #4

Updated by Go MAEDA almost 9 years ago

  • Related to Feature #12734: Add table reference to textile help added
Actions #5

Updated by Go MAEDA about 4 years ago

  • Subject changed from Markup help and toolbars lacks tables to Toolbar button to insert a table
  • Category changed from Wiki to Text formatting
  • Priority changed from Low to Normal

Since markup help already has information about tables (#12734), I am changing the subject of this issue.

Actions #6

Updated by Mizuki ISHIKAWA about 4 years ago

The attached patch adds a button to insert a table into the wiki toolbar.
The button create a table with rows / columns according to the selected range.

Markdown:

|A |B |C |D |E |
|--|--|--|--|--|
|  |  |  |  |  |
|  |  |  |  |  |
|  |  |  |  |  |

Textile:

|_.A|_.B|_.C|_.D|_.E|
|  |  |  |  |  |
|  |  |  |  |  |
|  |  |  |  |  |

Currently no icon image is set for the button. It is necessary to create a new appropriate icon image.

Actions #7

Updated by Go MAEDA about 4 years ago

  • Target version set to Candidate for next major release
Actions #8

Updated by Hiroyuki ENDO about 4 years ago

I made a new icon image.

Actions #9

Updated by Mizuki ISHIKAWA about 4 years ago

Hiroyuki ENDO wrote:

I made a new icon image.

Thank you for making the icon.
The icon looks very nice!

Screenshot when image.png is applied:

Updated the patch to use image.png as table button icon.

Actions #11

Updated by Kevin Fischer about 4 years ago

Unfortunately the grid lines of the selection UI are not properly displayed in Firefox.

Chrome:

Firefox:

This seems to be a long running bug of Firefox though: https://bugzilla.mozilla.org/show_bug.cgi?id=688556

There seem to be workarounds, like using

background-clip: padding-box;
on the cells... But then it looks a little bit strange on Chrome on the other hand

Actions #12

Updated by Mizuki ISHIKAWA about 4 years ago

Kevin Fischer wrote:

Unfortunately the grid lines of the selection UI are not properly displayed in Firefox.

Thanks for sharing the information!!
Operation verification on browsers other than Chrome was insufficient.
Since a problem was found not only in Firefox but also in IE11, a patch that solves the problem is attached.

0002-Firefox-support.patch resolves Firefox by removing `td { position: relative; }`.
0003-IE11-support.patch avoids using repeat function that did not work in IE11.

Actions #13

Updated by Go MAEDA about 4 years ago

  • Target version changed from Candidate for next major release to 4.2.0

Setting the target version to 4.2.0.

Actions #14

Updated by Jan from Planio www.plan.io about 4 years ago

I really like this patch. Great work!

For the icon, I think famfamfam should be used to stay consistent with the style of other icons in Redmine.

Actions #15

Updated by Go MAEDA about 4 years ago

Jan from Planio www.plan.io wrote:

For the icon, I think famfamfam should be used to stay consistent with the style of other icons in Redmine.

Thank you for the feedback. I think the suggested table icon is better than famfamfam's table icon because famfamfam's table icon looks like a document.

The suggested icon:

famfamfam's table icon:

Actions #16

Updated by Mizuki ISHIKAWA about 4 years ago

I also prefer image.png.
The famfamfam's icon does not look like a table because each cell is too small to identify.

Actions #17

Updated by Go MAEDA about 4 years ago

  • Status changed from New to Closed
  • Assignee set to Go MAEDA
  • Resolution set to Fixed

Committed the patch. Thank you for improving Redmine.

Actions

Also available in: Atom PDF