Issue Feature Closed

#25084Content rendering: Table cell content always wrapped in paragraphs

Christian Hennecke 02/18/11, 15:49 updated 06/01/13, 14:45

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)

Reviews 1