[Typo3] Solution for the p tag problems with complex HTML code in the RTE?
Pieter
pieter_v at telenet.be
Mon May 23 21:15:10 CEST 2005
There were several threads recently about problems with the RTE:
- RTE replaces <div> with <p>
- Typo adds <p> </p> after h1 tags
- Getting rid of <p> altogether
- How to remove <P> Tags in table cells (build in RTE)
- RTE - remove <P> tag
This is all because the text from the RTE is stored in the database as
human readable as possible. For example, <p> and </p> tags from the RTE
are stored as chr(10) (enter) in the database and replaced with <p> and
</p> again when de content is shown on a web page.
This is fine if you have plain text in the RTE but htmlArea RTE can to a
lot more. People adding content to the website will use this extra
functionality. And problems like the ones listed above then start to
occur.
My idea to solve this:
Why not create a htmlArea version to edit the HTML content element?
HtmlArea creates perfectly fine HTML code. The text inside the HTML
content element is stored to the database without any changes. Isn't
that a great marriage?
I don't see any disadvantages for the moment, maybe some of you do?
Don't have any idea how much effort it will take to implement this?
It would be great to have this functionality in tt_news too, but that
might be a separate problem.
Kind regards,
Pieter
More information about the TYPO3-english
mailing list