Project

General

Profile

Actions

Feature #25084

closed

Content rendering: Table cell content always wrapped in paragraphs

Added by Christian Hennecke about 13 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2011-02-18
Due date:
% Done:

100%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

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.

< td >example< /td >

is rendered as

< td >< p >example< /p >< /td >

It would be nice if the default could be changed as it leads to bloated page and requires special additional CSS treatment for paragraphs in cells.

Currently, a suitable solution seems to be adding

lib.parseFunc_RTE.externalBlocks.table.HTMLtableCells.default >
lib.parseFunc_RTE.externalBlocks.table.HTMLtableCells.default.stdWrap.parseFunc =< lib.parseFunc

to the setup field of the TS template.
(issue imported from #M17649)


Files

Actions #1

Updated by Stanislas Rolland about 13 years ago

I don't think this is correct, because the table cell may contain block-level elements...

Actions #2

Updated by Stanislas Rolland about 13 years ago

I think we need to set:

lib.parseFunc_RTE.externalBlocks.table.HTMLtableCells.default.callRecursive>
lib.parseFunc_RTE.externalBlocks.table.HTMLtableCells.default.stdWrap.parseFunc =< lib.parseFunc_RTE
lib.parseFunc_RTE.externalBlocks.table.HTMLtableCells.default.stdWrap.parseFunc.nonTypoTagStdWrap.encapsLines.nonWrappedTag =

Actions #3

Updated by Stanislas Rolland about 13 years ago

Attaching TYPO3 4.4 version of the patch for testing purposes, but I think this will have to be considered a feature.

Actions #4

Updated by Xavier Perseguers over 12 years ago

  • Target version changed from 4.6.0 to 4.6.0-beta1
  • TYPO3 Version set to 4.6
Actions #5

Updated by Mr. Hudson over 12 years ago

Patch set 1 of change Ia23d0bbab338d6fb0efc90eb60bdd485a2c2c5f8 has been pushed to the review server.
It is available at http://review.typo3.org/3327

Actions #6

Updated by Mr. Hudson over 12 years ago

Patch set 2 of change Ia23d0bbab338d6fb0efc90eb60bdd485a2c2c5f8 has been pushed to the review server.
It is available at http://review.typo3.org/3327

Actions #7

Updated by Stanislas Rolland over 12 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100
Actions #8

Updated by Xavier Perseguers about 12 years ago

  • Status changed from Resolved to Closed
Actions #9

Updated by Ernesto Baschny almost 11 years ago

  • Target version deleted (4.6.0-beta1)
Actions

Also available in: Atom PDF