Tags:
create new tag
, view all tags

Feature Proposals » Table Cells With TML

Summary

Current State: Developer: Reason: Date: Concerns By: Bug Tracking: Proposed For:
ImplementedAsExtension PeterThoeny AcceptedBy7DayFeedbackPeriod 2014-11-12   TWikibug:Item7594 KampalaRelease

Edit Form

TopicSummary:
CurrentState:
CommittedDeveloper:
ReasonForDecision:
DateOfCommitment:   Format: YYYY-MM-DD
ConcernRaisedBy:
BugTracking:
OutstandingIssues:
RelatedTopics:
InterestedParties:
ProposedFor:
TWikiContributors:
 

Motivation

Currently it is not possible to use TML within TWiki table cells because a table row must be on one and only one line. Therefore it is not possible to use other line oriented elements in tables, such as bullet lists or embedded tables. As a workaround it is possible to fall back to HTML, but this is cumbersome.

Description and Documentation

Enhance the syntax so that it is possible to have multiple lines within a table cell.

Normal table cell: | example |

Syntax for multi-line table cell: |>> example <<|

This syntax is aligned with the multi-row cell syntax: |^|

Examples

  Simple example:

| A1 | B1 | C1 |
| A2 |>> B2
   * List
   * Two
<<| C2 |
| A3 | B3 | C3 |
  Screenshot:

simple-table.png

  Renders as: (broken unless implemented)

A1 B1 C1
| A2 |>> B2
  • List
  • Two
<<| C2 |
A3 B3 C3
 

Here is a more complex example with a table within table that has a bullet list:

  Complex example:

| *A1* | *B1* | *C1* | *D1* | *E1* |
| A2 | B2 | C2 | D2 | E2 |
| A3 |>> B3
   * List
   * Two
<<| C3 |>> D3
  | *D3.1* | *D3.2* |
  | Embedded | Table |
  | OK |>>
start D3.2b
   * 3rd level
   * bullet
end D3.2b
<<|
end D3
<<| E3 |
| A4 | B4 | C4 | D4 | E4 |
  Screenshot:

complex-table.png

  Renders as: (broken unless implemented)

A1 B1 C1 D1 E1
A2 B2 C2 D2 E2
| A3 |>> B3
  • List
  • Two
<<| C3 |>> D3
D3.1 D3.2
Embedded Table
| OK |>> start D3.2b
  • 3rd level
  • bullet
end D3.2b <<| end D3 <<| E3 |
A4 B4 C4 D4 E4
 

Impact

WhatDoesItAffect: Rendering

Implementation

The implementation should be done in two phases:

  1. Enhance the TablePlugin (relatively easy)
  2. Enhance the WysiwygPlugin (relatively hard)

-- Contributors: Peter Thoeny - 2014-11-12

Discussion

This would be very useful. I'd love to use it once it's implemented.

Incidentally, how would the following be marked up?

  • abc
  • def
  • ghi
  • 123
  • 456
  • 478
Would it be:
|>>
   * abc
   * def
   * ghi
<<|>>
   * 123
   * 456
   * 478
<<|

<<|>> should be mentioned, I suppose.

-- Hideyo Imazu - 2014-11-13

Yes, that is the idea.

-- Peter Thoeny - 2014-11-13

I am trying to find a sponsor who could support the implementation of this feature. Any company interested?

-- Peter Thoeny - 2014-11-13

Feedback at KampalaReleaseMeeting2014x12x04:

  • Disable WYSIWYG editor of new syntax is detected.
  • At a later point, enhance WYSIWYG editor to support new syntax.

-- Peter Thoeny - 2014-12-04

The TablePlugin is now enhanced with this feature.

To do:

-- Peter Thoeny - 2014-12-09

The WysiwygPlugin is now updated to disable itself if |>> ... <<| syntax is detected.

-- Peter Thoeny - 2014-12-16

TWikiEditingShorthand is updated as well.

-- Peter Thoeny - 2014-12-16

Edit | Attach | Watch | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r7 - 2014-12-16 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.