[TYPO3-RTE] Problem with BR tag in paragraphs
Yastrebkov Dmitry
dmirys at nnc.kz
Mon Sep 11 05:47:54 CEST 2006
Hi,
I use tinyrte for content creation. It's really good editor, but I have one
problem.
When I use BR tag, after saving it replaces with <p></p> like this:
--- befor saving ---
some text 1<BR>
some text 2<BR>
some text 3.
--- after saving ---
<P>some text 1</P>
<P>some text 2</P>
<P>some text 3.</P>
I try to resolve this problem by adding following strings to the setup block
of my root TS template, but nothing changes:
RTE.default.proc.entryHTMLparser_db.allowTags=
h1,h2,h3,h4,h5,h6,div,br,span,b,a,ul
RTE.default.proc.dontConvBRtoParagraph = 1
RTE.default.proc.preserveTags = BR, UL, LI, TYPOCODE, MYTAG, P, Class, TD,
Table
I found out that conversion take place only if BR tag contained in P tags
and there are only one paragraph. For example, I have:
some text 1<BR>
some text 2<BR>
some text 3.
I press Save and recieve:
<P>some text 1<BR>
some text 2<BR>
some text 3.</P>
Than I press Save button again and recieve:
<P>some text 1</P>
<P>some text 2</P>
<P>some text 3.</P>
If I have more than one paragraph in my page:
<P>some text 1<BR>
some text 2</P>
<P>some text 3.</P>
or
<P>some text 1</P>
some text 2<BR>
some text 3.
I recieve:
<P>some text 1</P>
<P>some text 2</P>
<P>some text 3.</P>
Please, tell me how to fix this? What settings and where I must to do, to
resolve this problem?
Thank you very much.
Dmitry.
More information about the TYPO3-project-rte
mailing list