Hallo zusammen,
Ich habe das (nach den vielen Foreneinträgen offenbar bekannte) Problem, dass <div> Tags im RTE beim Speichern in <p> Tags konvertiert werden.
Die <div> tags brauche ich allerdings unbedingt für boxen in den Spalten. Das Erbenis sollte zB. so aussehen:
<div class="box1"> <h1>Boxheader</h1> <p>Boxbody</p> </div>
Der RTE sollte das so übernehmen, mach er aber nicht.. Aus dem DIV wird ein P Tag.
Ich habe auch schon massig rumkonfiguriert, bekomme es aber einfach nicht hin.
Hier meine (aktuelle) TSConfig für den RTE:
[TS]RTE.default {
contentCSS = fileadmin/css/main/typo3-RTE.css
useCSS = 1
showTagFreeClasses = 1
showButtons = *
hideButtons = lefttoright, righttoleft, fontstyle, fontsize, showhelp
keepButtonGroupTogether = 1
allowedClasses = colBox1,greenbox,bluebox,code,box,smalltext,redbox,mono,file,directory,orangeBackground
proc {
allowTags = table, tbody, tr, th, td, div, h1, h2, h3, h4, h5, h6, div, p, br, span, ul, ol, li, re, blockquote, strong, em, b, i, u, sub, sup, strike, a, img, nobr, hr, tt, q, cite, abbr, acronym, center, font
denyTags >
allowedClasses < RTE.default.allowedClasses
dontConvBRtoParagraph = 1
keepPDIVattribs = align,class,id
entryHTMLparser_db = 1
entryHTMLparser_db {
remapParagraphTag >
removeTags = center,sdfield,font
removeTagsAndContents = style,script
allowTags < RTE.default.proc.allowTags
tags.div.allowedAttribs = class,align,id
}
HTMLparser_rte {
allowTags < RTE.default.proc.allowTags
keepNonMatchedTags = 1
}
}
}[/TS]
Wäre für jede Hilfe dankbar.. ich bastel nun schon zwei Stunden rum und komme einfach nicht weiter.
Vielen lieben Dank,
Ciao,
Mike