Mein RTE überschreibt vorhandene CSS-Formatierungen nicht. Als Beispiel mal das hier:
<span class="text">Bla bla bla</span>
Wenn ich nun die Formatierung ändern möchte und das Ganze markiere und ändere speichert er folgendes ab:
<span class="text textklfett">Bla bla bla</span>
Er überschreibt also die bisherige Formatierung nicht.
Wie kann ich ihm das abgewöhnen?
Meine RTE-Konfiguration:
mod.SHARED.colPos_list = 0
TCEFORM.tt_content.colPos.removeItems = 1,3
TCEFORM.tt_content.header_layout.removeItems = 0,1,2,3,4,5,100
RTE.default.contentCSS = fileadmin/inc/f_style.css
RTE.default.useCSS = 1
RTE.default.enableWordClean = 1
RTE.default.disableEnterParagraphs = 0
RTE.default.hideButtons = linebreak, fontstyle, space, fontsize, space, formatblock, bar, bold, italic, underline, bar, strikethrough, subscript, superscript, bar, undo, redo, bar, outdent, indent, bar, textcolor, bgcolor, textindicator, bar, emoticon, line, table, user, acronym, bar, spellcheck, findreplace, bar, inserttag, removeformat, bar, copy, cut, paste, bar, showhelp, about, linebreak,toggleborders,tableproperties, bar, rowproperties, rowinsertabove, rowinsertunder, rowdelete, rowsplit, bar,
columninsertbefore, columninsertafter, columndelete, columnsplit, bar, cellproperties, cellinsertbefore, cellinsertafter, celldelete, cellsplit, cellmerge
#fontstyle, fontsize werden ins html geschrieben, deshalb rausgenommen
#lefttoright, righttoleft nicht benötigt
#inserttag rausgenommen, damit redakteure damit keinen unsinn treiben
#PRE nicht benötigt, deshalb rausgenommen
#H1 aus semantischen Gründen rausgenommen (Überschrift Inhaltselemente ist schon h1)
RTE.default.hidePStyleItems = PRE, H1
#Für sauberes html rausgenommen
RTE.default.hideTags = font, font (full)
# siehe oben ausführlich
RTE.default.showTagFreeClasses = 1
RTE.default.classesCharacter = center,text,textmt,textklfett,preise,preise_kl,mainnavi,mainnavi_red
RTE.default.classesAnchor = mailto
RTE.config.tt_content.bodytext.proc.allowedClasses = center,text,textmt,textklfett,preise,preise_kl,mainnavi,mainnavi_red
RTE.default.showStatusBar = 1
RTE.default.proc {
// TRANSFORMATION METHOD
overruleMode = ts_css
preserveTables=1
// LINES CONVERSION
dontConvBRtoParagraph = 1
// TAGS ALLOWED OUTSIDE P & DIV
allowTagsOutside = img,hr
// TAGS ALLOWED
allowTags = table, thead, tbody, tr, th, td, img, h1, h2, h3, h4, h5, h6, div, p, br, span, ul, ol, li, re, blockquote, strong, em, b, i, u, sub, sup, strike, a, 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
}
}