Bug #14498
closeddiv tags converted to p tags
0%
Description
If I change to source code view in rtehtmlarea and write a div element, it is changed to a p tag when I save the document. It does not change anything if I set the PROC->useDIVasParagraphTagForRTE typoscript setting.
(issue imported from #M686)
Updated by Stanislas Rolland almost 20 years ago
in Page TSConfig, set:
RTE.default.proc.useDIVasParagraphTagForRTE = 1
RTE.config.tt_content.bodytext.proc.useDIVasParagraphTagForRTE = 1
Then, the div tag will be preserved. Note that p tags will also be replaced by div tags. Beware that other proc settings may affect this transformation especially if the tag has attributes that need to be preserved.
htmlArea RTE (rtehtmlarea) is not involved in these transformations (except for submitting the incoming/outgoing content to the parsing classes).