Modify

Opened 3 years ago

Last modified 3 years ago

#8850 reopened enhancement

Support for tables

Reported by: itamarost Owned by: itamarost
Priority: normal Component: CkEditorPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.12

Description

Best effort - convert HTML tables to wiki-tables, always try simplest form first (so users using source-editing are not overwhelmed...)

Attachments (1)

sample_table.txt (321 bytes) - added by framay 3 years ago.
Sample wiki for a more complex table

Download all attachments as: .zip

Change History (4)

comment:1 Changed 3 years ago by framay

  • Resolution set to fixed
  • Status changed from new to closed

(In [10922]) fixes #8850, #8851, #8852: implemented a lot of new functionalities, so named this version 1.1dev

comment:2 follow-up: Changed 3 years ago by itamarost

  • Priority changed from high to normal
  • Resolution fixed deleted
  • Status changed from closed to reopened

Well, table insertion works, but I wouldn't say it suffices to solve this ticket.

It is important that the plugin adheres to simplest-form-first, so it is feasible to edit the table in source mode as well.

For example, a simple 2x2 table with heading (works in 0.12) like this:

Name ID
MyName #1

should take the following simplest form:

||= Name =||= ID =||
|| MyName || #1 ||

Changed 3 years ago by framay

Sample wiki for a more complex table

comment:3 in reply to: ↑ 2 Changed 3 years ago by framay

Replying to itamarost:

Well, table insertion works, but I wouldn't say it suffices to solve this ticket.

It is important that the plugin adheres to simplest-form-first, so it is feasible to edit the table in source mode as well.

In my point of view it is most important that all features are implemented. So if you would like to have lists in a table cell, this only works with td-macro. But I haven't known until now that you could mix simple form and td-macro as the uploaded example shows (works in Trac 0.12).

The technical problem is to determine, when it is feasible to use simple table and when you need td-macro. As far as I know there are only these elements, which only works well with td-macro (all listed items are working in current version of CKEditorPlugin):

  • ordered and unordered lists in cell
  • new table in cell
  • multi-lines of code-block
  • horizontal line in table cell
  • Discussion Citations (is currenlty NOT working in CKEditorPlugin)
  • several lines in one cell (can also be managed by adding [[BR]] macro in simple table)

Add Comment

Modify Ticket

Action
as reopened .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.