[FEATURE] RTE rendering: Table cell content wrapped in paragraphs
authorStanislas Rolland <typo3@sjbr.ca>
Thu, 14 Jul 2011 15:34:33 +0000 (11:34 -0400)
committerSusanne Moog <typo3@susannemoog.de>
Sat, 16 Jul 2011 19:39:04 +0000 (21:39 +0200)
By default, the content of table cells is always wrapped in
paragraph tags when rendered in the frontend even if no
paragraphs are entered in the RTE.

This RFC changes this default. Non-wrapped content will not
be wrapped in paragraph inside a table cell.

Change-Id: Ia23d0bbab338d6fb0efc90eb60bdd485a2c2c5f8
Resolves: #25084
Reviewed-on: http://review.typo3.org/3327
Reviewed-by: Susanne Moog
Tested-by: Susanne Moog
typo3/sysext/css_styled_content/static/setup.txt

index d98b926..c77650f 100644 (file)
@@ -116,7 +116,11 @@ lib.parseFunc_RTE {
                table.stdWrap.HTMLparser.keepNonMatchedTags = 1
                table.HTMLtableCells=1
                table.HTMLtableCells {
-                       default.callRecursive=1
+                       # Recursive call to self but without wrapping non-wrapped cell content
+                       default.stdWrap {
+                               parseFunc =< lib.parseFunc_RTE
+                               parseFunc.nonTypoTagStdWrap.encapsLines.nonWrappedTag = 
+                       }
                        addChr10BetweenParagraphs=1
                }
                div.stripNL = 1