[Typo3-german] <p>-Tags im RTE beibehalten
Alexander Bohndorf
bohndorf at sitegeist.de
Mon Dec 5 15:53:15 CET 2005
Hallo!
Wir setzen Typo 3.8 mit Standard RTE ein.
In der HTML-Ansicht haben wir folgenden HTML-Code:
<UL>
<LI>Betriebsferien vom 02.01.2006 bis 15.01.2006</LI>
<LI>Fußball-WM 2006 im Travel Charme Am Jägertor</LI></UL>
<P>Zeilenwechsel mit BR<BR>und dann mit Absatz</P>
<P>Neuer Absatz</P>
Wie kann ich erreichen, dass die <P>-Tags erhalten bleiben?
Folgendes Page TS verwende ich:
RTE.default {
#showButtons =
cut,copy,paste,formatblock,class,fontstyle,fontsize,textcolor,bold,italic,underline,left,center,right,orderedlist,unorderedlist,outdent,indent,link,table,bgcolor,image,emoticon,line,user,chMode
defaultLinkTarget =
proc.overruleMode = ts_css
proc.preserveTables = 1
allowTagsOutside = a
proc.dontConvBRtoParagraph = 1
proc.entryHTMLparser_db = 1
proc.entryHTMLparser_db {
allowTags =
table,tr,td,p,div,img,hr,a,br,pre,strong,em,li,ul,ol,span,h1,h2,h3,h4,h5,h6,dl,dt,dd,font
proc.preserveTags = ul, li, class
}
}
RTE.config.tt_content.bodytext < RTE.default
Im Template Setup habe ich folgendes stehen:
lib.parseFunc_RTE.nonTypoTagStdWrap.encapsLines.addAttributes.P.class >
lib.parseFunc.allowTags =
b,i,u,a,img,br,div,center,pre,font,hr,sub,sup,p,strong,em,li,ul,ol,blockquote,strike,span,h1,h2,h3,h4,h5,h6,table,
tr,td,th,tfoot,tbody
# folgendes will ich nicht, weil das um JEDE Zeile <p> macht:
#lib.parseFunc.nonTypoTagStdWrap.encapsLines.wrapNonWrappedLines = <P>|</P>
Danke für eure Hilfe.
Alexander
More information about the TYPO3-german
mailing list