Hallo allerseits,
Ich habe ein sehr gut funktionierendes Konfirurationsscript beim Googeln gefunden.
RTE ist damit sehr gut vorkonfiguriert, dass einzige
was nicht klappt, ist die Darstellung der h1-h6
Überschrifften und die Umwandlung der <p> in <br /> tags.
Die Überschrifften werden im FE so angezeigt.
<h2>Text</h2>
würde mich sehr über Hilfe freuen #giggle#
RTE.default.contentCSS = fileadmin/m-l_webdesign/css/olive/inhalt.css
RTE.default.useCSS = 1
RTE.default.enableWordClean = 1
RTE.default.disableEnterParagraphs = 0
# textstylelabel, blockstyle,
RTE.default.hideButtons = fontstyle, fontsize, lefttoright, righttoleft, inserttag,textstyle, blockstylelabel, bgcolor
#PRE nicht benötigt, deshalb rausgenommen
#H1 aus semantischen Gründen rausgenommen (Überschrift Inhaltselemente ist schon h1)
RTE.default.hidePStyleItems = PRE, H1, H4, H5, H6
#Für sauberes html rausgenommen
RTE.default.hideTags = font, font (full)
# siehe oben ausführlich
RTE.default.showTagFreeClasses = 1
RTE.default.classesParagraph = gross, mittel, klein
RTE.default.classesCharacter =
RTE.default.classesImage = blauerRand, 10pxAbstand
RTE.default.classesAnchor = intern, mailto
RTE.config.tt_content.bodytext.proc.allowedClasses = gross, mittel, klein
RTE.default.showStatusBar = 1
RTE.default.proc {
// TRANSFORMATION METHOD
overruleMode = ts_css
// LINES CONVERSION
dontConvBRtoParagraph = 1
// TAGS ALLOWED OUTSIDE P & DIV
allowTagsOutside = img,hr
// TAGS ALLOWED
allowTags = table, tbody, tr, th, td, h2, h3, 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
// TAGS DENIED
denyTags = font
// ALLOWED P & DIV ATTRIBUTES
keepPDIVattribs = align,class,style
// CONTENT TO RTE
HTMLparser_rte {
// TAGS ALLOWED
allowTags < RTE.default.proc.allowTags
removeTags = font
// DO NOT REMOVE UNMATCHED TAGS
keepNonMatchedTags = 0
}
// CONTENT TO DATABASE
entryHTMLparser_db = 1
entryHTMLparser_db {
// XHTML COMPLIANCE
xhtml_cleaning = 1
// CLEAN TAGS
noAttrib = b, i, u, strike, sub, sup, strong, em, quote, blockquote, cite, tt, br, center
tags.hr.allowedAttribs = class
// REMAP B AND I TAGS
tags.b.remap = strong
tags.i.remap = em
rmTagIfNoAttrib = span,div,font
htmlSpecialChars = 1
}
}
RTE.default.disableColorPicker = 1
RTE.default.disableSelectColor = 0
#vordefinierte Farben
RTE.colors {
color1 {
name = Olive
value = #999966
}
color2 {
name = Hellblau
value = #006699
}
color3 {
name = Grau Eins
value = #cccccc
}
color4 {
name = Grau Zwei
value = #999999
}
color5 {
name = Grau Drei
value = #333333
}
color6 {
name = orange
value = #FF9933
}
color7 {
name = pfirsich
value = #FFDAB9
}
color8 {
name = natur
value = #FDF5E6
}
}
RTE.default.colors = color1, color2, color3, color4, color5, color6, color7, color8