How to stop TYPO3 from stripping <p> tags from RTE content (or touching it at all)
Solution 1:
I'm not sure if this is a bug or not but the solution to my problem lies in p.rmTagIfNoAttrib = 1
. At least in my TYPO3 version (v6.1.7 and nearly only built in extensions) I cannot find this setting in the preset TypoScript of the page or the RTE editor so I'm guessing it defaults to 0
. In my logic 0
means false
so I'd say the default would read as "remove tag if there is no attribute?: no!".
However TYPO3 seems to work after its own logic. Adding the following statement to the page TS sloves my problem and <p>
tags are preserved:
RTE.default.proc {
entryHTMLparser_db {
tags {
p.rmTagIfNoAttrib = 1
}
}
}