Hallo,
hab ein ähnliches Problem wie photek, nur mit der Schriftfarbe und dem Hintergrund. Die Tags <span style="..."> haut er mir einfach raus.
Habe als Basis auch die Konfiguration aus dem Thread hier und einige Anpassungen gemacht, aber ich denke, irgendwo steht noch was drin, was ich nicht mag ... vielleicht sieht es jemand von Euch, wo der Wurm ist, ich bin die Konfiguration schon zig mal durchgegangen.
mod.SHARED.colPos_list = [0, 2]
## RTE Klasse des Interface (Ausrichtung)
RTE.classes {
align-left {
name = LLL:EXT:rtehtmlarea/htmlarea/locallang_tooltips.xml:justifyleft
value = text-align: left;
}
align-center {
name = LLL:EXT:rtehtmlarea/htmlarea/locallang_tooltips.xml:justifycenter
value = text-align: center;
}
align-right {
name = LLL:EXT:rtehtmlarea/htmlarea/locallang_tooltips.xml:justifyright
value = text-align: right;
}
}
## RTE Konfiguration
RTE.default {
contentCSS = fileadmin/css/content.css
useCSS = 0
## Markup options
enableWordClean = 1
removeTrailingBR = 1
removeComments = 1
#removeTags = center, sdfield
#removeTagsAndContents = style,script
## Buttons die gezeigt/versteckt werden
showButtons = textstyle, textstylelabel, blockstyle, blockstylelabel, bold, italic, underline, left, center, right, subscript, superscript, outdent, indent, orderedlist, unorderedlist, insertcharacter, line, link, image, removeformat, table, toggleborders, tableproperties, rowproperties, rowinsertabove, rowinsertunder, rowdelete, rowsplit, columninsertbefore, columninsertafter, columndelete, columnsplit, cellproperties, cellinsertbefore, cellinsertafter, celldelete, cellsplit, cellmerge, insertcharacter, undo, redo, copy, cut, paste, textcolor, bgcolor, chMode
hideButtons = fontstyle, fontsize, formatblock, strikethrough,lefttoright, righttoleft, textindicator, emoticon, user, spellcheck, justifyfull, acronym, showhelp, about, findreplace, inserttag
## Hält die RTE Icons gegroupt zusammen
keepButtonGroupTogether = 1
## blendet Statusbar in htmlarea aus
showStatusBar = 0
## Add styles Left, center and right alignment of text in paragraphs and cells.
inlineStyle.text-alignment (
p.align-left, h1.align-left, h2.align-left, td.align-left { text-align: left; }
p.align-center, h1.align-center, h2.align-center,td.align-center { text-align: center; }
p.align-right, h1.align-right, h2.align-right, td.align-right { text-align: right; }
)
## Use stylesheet file rather than the above mainStyleOverride and inlineStyle properties to style the contents (htmlArea RTE only)
ignoreMainStyleOverride = 1
proc {
# tags die erlaubt / verboten sind
allowTags = font, table, tbody, tr, th, td, h1, h2, 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
denyTags = h3, h4, h5, h6
# br wird nicht zu p konvertiert
dontConvBRtoParagraph = 1
# tags sind erlaubt außerhalt von p, div
allowTagsOutside = img,hr,span
# erlaubte attribute in p, div tags
keepPDIVattribs = align,class,style,id
# List all class selectors that are allowed on the way to the database
allowedClasses (
external-link, external-link-new-window, internal-link, internal-link-new-window, download, mail,
align-left, align-center, align-right, author
)
# html parser einstellungen
HTMLparser_rte {
# tags die erlaubt/verboten sind
allowTags < RTE.default.proc.allowTags
denyTags < RTE.default.proc.denyTags
# tags die untersagt sind
#removeTags = font
# entfernt html-kommentare
removeComments = 1
# tags die nicht übereinstimmen werden nicht entfernt (protect / 1 / 0)
keepNonMatchedTags = 0
}
# Content to database
entryHTMLparser_db = 1
entryHTMLparser_db {
# tags die erlaubt/verboten sind
allowTags < RTE.default.proc.allowTags
denyTags < RTE.default.proc.denyTags
# CLEAN TAGS
noAttrib = b, i, u, strike, sub, sup, strong, em, quote, blockquote, cite, tt, br, center
rmTagIfNoAttrib = span,div,font
# align attribute werden erlaubt
tags {
p.fixAttrib.align.unset >
p.allowedAttribs = class,style,align
div.fixAttrib.align.unset >
hr.allowedAttribs = class
span.allowedAttribs = class,style
# b und i tags werden ersetzt (em / strong)
b.remap = strong
i.remap = em
# img tags werden erlaubt
img >
}
}
}
## Classes: Ausrichtung
classesParagraph (
align-left, align-center, align-right
)
# Classes: Eigene Stile
classesCharacter = headline1, headline2, text, text_small, legend, news_text, news_text_last, image_left, image_right, pdf_link, viewlet_link
# Classes für Links (These classes should also be in the list of allowedClasses)
classesAnchor = external-link, external-link-new-window, internal-link, internal-link-new-window, download, mail
classesAnchor.default {
page = internal-link
url = external-link-new-window
file = download
mail = mail
}
## zeigt alle CSS-Klassen die in content.css vorhanden sind
showTagFreeClasses = 1
## Do not allow insertion of the following tags
#hideTags = font
## Tabellen Optionen in der RTE Toolbar
hideTableOperationsInToolbar = 0
keepToggleBordersInToolbar = 1
## Tabellen Editierungs-Optionen (cellspacing/ cellpadding / border)
disableSpacingFieldsetInTableOperations = 0
disableAlignmentFieldsetInTableOperations=0
disableColorFieldsetInTableOperations=0
disableLayoutFieldsetInTableOperations=0
disableBordersFieldsetInTableOperations=0
}
## Use same processing as on entry to database to clean content pasted into the editor
RTE.default.enableWordClean.HTMLparser < RTE.default.proc.entryHTMLparser_db
## FE RTE configuration (htmlArea RTE only)
RTE.default.FE < RTE.default
RTE.default.FE.userElements >
RTE.default.FE.userLinks >
TCEFORM.tt_content {
bodytext.RTEfullScreenWidth= 80%
}
}
## vordefinierte Farben
RTE.colors {
color1 {
name = st-red
value = #ff3300
}
color2 {
name = st-gray
value = #e6e6e6
}
color3 {
name = st-darkgray
value = #959595
}
}
RTE.default.colors = color1, color2, color3
RTE.config.tt_content.bodytext.proc.allowedClasses < RTE.default.classesCharacter
Bin für jede Hilfe dankbar, ich häng zur Zeit an so vielen Punkten, diese Woche war einfach nicht die meine 😢