Hi,
danke für den Hinweis! Und für die Mühen dort!! 😉
Ich bin jetzt zumindest einen Schritt weiter gekommen. Immerhin kann ich jetzt div-Klassen um einen Abschnitt zuweisen, auch wenn das div hinterher in p geparst wird. Zumindest bleibt aber die Klasse erhalten.
Komischerweise wird aber die CSS-Datei nicht gezogen. Hab es mit mehreren Pfaden probiert, aber keiner griff. Wo sollte die Datei denn relativ liegen?
Was weiterhin überhaupt nicht funktioniert, sind die userElements. Ich kann immer nur auf "Kategorie erweitern" klicken, aber weiterhin tut sich nichts. Muss das irgendwie anders eingebunden werden?
Meine aktuelle Konfiguration:
mod.web_layout.tt_content.colPos_list = 1, 0, 2
## RTE Konfiguration
RTE.default {
# Zuweisung der CSS-Datei
contentCSS = homepage.css
useCSS = 1
# Benutzerdefiniert
userElements {
10 = Blaue Überschrift groß
10.description = Ausgewählter Text wird zur blauen Überschrift 1. Ordnung
10.mode = wrap
10.content = <h1>|</h1>
20 = Überschrift orange
20.description = Ausgewählter Text wird zur orangen Überschrift 2. Ordnung
20.mode = wrap
20.content = <h2>|</h2>
30 = Überschrift gelb
30.description = Ausgewählter Text wird zur gelben Überschrift 3. Ordnung
30.mode = wrap
30.content = <h3>|</h3>
40 = Graue Überschrift klein
40.description = Ausgewählter Text wird zur grauen Überschrift 4. Ordnung
40.mode = wrap
40.content = <h4>|</h4>
}
## Markup options
enableWordClean = 1
removeTrailingBR = 1
removeComments = 1
removeTags = center, sdfield
removeTagsAndContents = style,script
# Buttons die gezeigt/versteckt werden
showButtons = cut, copy, paste, bold, italic, underline, left, center, right, unorderedlist, link, removeformat, insertcharacter, undo, redo, showhelp, inserttag, chMode, findreplace, user
hideButtons = textstyle, textstylelabel, blockstyle, blockstylelabel, orderedlist, line, image, table, toggleborders, tableproperties, rowproperties, rowinsertabove, rowinsertunder, rowdelete, rowsplit, columninsertbefore, columninsertafter, columndelete, columnsplit, cellproperties, cellinsertbefore, cellinsertafter, celldelete, cellsplit, cellmerge, about, fontstyle, formatblock, fontsize, strikethrough,lefttoright, righttoleft, textcolor, bgcolor, textindicator, emoticon, spellcheck, outdent, indent, justifyfull, subscript, superscript, acronym
# Hält die RTE Icons gegroupt zusammen
keepButtonGroupTogether = 1
# blendet Statusbar in htmlarea ein
showStatusBar = 1
## 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 = table, tbody, tr, th, td, 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
denyTags = font, center
# br wird nicht zu p konvertiert
dontConvBRtoParagraph = 1
# tags sind erlaubt außerhalt von p, div
allowTagsOutside = img,hr
# erlaubte attribute in p, div tags
keepPDIVattribs = 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
)
# 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, center
# 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
# htmlSpecialChars = 1
## align attribute werden erlaubt
tags {
p.fixAttrib.align.unset >
p.allowedAttribs = class,style
div.fixAttrib.align.unset >
hr.allowedAttribs = class
# b und i tags werden ersetzt (em / strong)
b.remap = strong
i.remap = em
## img tags werden erlaubt
img >
}
}
}
)
# 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 homepage.css vorhanden sind
showTagFreeClasses = 1
# Do not allow insertion of the following tags
hideTags = font, center
# Tabellen Optionen in der RTE Toolbar
hideTableOperationsInToolbar = 0
keepToggleBordersInToolbar = 1
# Tabellen Editierungs-Optionen (cellspacing/ cellpadding / border)
disableSpacingFieldsetInTableOperations = 1
disableAlignmentFieldsetInTableOperations=1
disableColorFieldsetInTableOperations=1
disableLayoutFieldsetInTableOperations=1
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 >
# Breite des RTE in Fullscreen-Ansicht
TCEFORM.tt_content.bodytext.RTEfullScreenWidth= 80%
Danke&Gruß Alex