Hallo zusammen...
Der RTE in der Version 2.2.1 im TYPO3 Version 4.6.4 weigert sich strikt an meine Konfiguration zu halten.
Hier mal die Konfiguration aus der Seite (Konfig steht in der TSconfig der Root-Seite).
##
## RTE Konfiguration
##
RTE.fonts {
face1 {
name = DIN Pro
value = DINPro, Helvetica, Arial
}
noFace {
name = kein font
value =
}
}
# Specific setting for the fontstyle selector:
RTE.default.buttons.fontstyle.addItems = face1, noFace
#*** RTE Classe 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;
}
beschreibung {
name = Beschreibung
value = text-align: left;
}
preis {
name = Sonderangebot Preis
value = text-align: left;
}
titel {
name = Sonderangebot Titel
value = text-align: left;
}
}
#
# *** Entfernt das Bild vor den Links
RTE.classesAnchor {
internalLink {
class = internal-link
type = page
image >
}
externalLink {
class = external-link
type = url
image >
}
externalLinkInNewWindow {
class = external-link-new-window
type = url
image >
}
internalLinkInNewWindow {
class = internal-link-new-window
type = page
image >
}
download {
class = download
type = file
image >
}
downloadPDF {
class = download
type = file
image = fileadmin/pic/pdficon.png
altText = PDF
titleText = PDF
}
mail {
class = mail
type = mail
image >
}
}
#RTE.default.classesAnchor := addToList(download-pdf)
RTE.default {
# Zuweisung der CSS-Datei
contentCSS = fileadmin/inc/rte_formate.css
enableWordClean = 1
removeTrailingBR = 1
removeComments = 1
#removeTags = center, sdfield
removeTagsAndContents = style,script
# Buttons die gezeigt/versteckt werden
showButtons = formatblock, textstyle, textstylelabel, blockstyle, blockstylelabel, bold, italic, underline, left, center, right, 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, findreplace, insertcharacter, undo, redo, showhelp, about
#hideButtons = strikethrough,lefttoright, righttoleft, textindicator, emoticon, user, spellcheck, justifyfull, acronym, showhelp, about, findreplace, inserttag, fontstyle, fontsize
buttons.formatblock.removeItems = h2,h3,h5,h6,pre,address,blockquote,div
buttons.formatblock.addItems = p, h1, h4
# define labels for headings
buttons.formatblock.items {
h1.label = Headline (Teaserbox Startseite)
#h2.label = Untertitel 1
#h3.label = Untertitel 2
h4.label = Headline (Subbox Startseite)
}
# define order of headings (auto-removes non listed)
buttons.formatblock.orderItems = h1, h2, h3, h4
# Hält die RTE Icons gegroupt
keepButtonGroupTogether = 1
# blendet Statusbar in htmlarea aus
showStatusBar = 0
# Disable "magic image" in RTE
buttons.image.options.removeItems = magic
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, center
denyTags = font
# 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 = align, class, style, id
allowedClasses = (htmlarea-content-body, external-link, external-link-window, internal-link, internal-link-new-window, download, mail, align-left, align-center, align-right, author, preis, titel, dinbold, table-style, tsty)
# html parser einstellungen
HTMLparser_rte {
#tags die erlaubt/verboten sind
allowTags < RTE.default.proc.allowTags
denyTag < 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, t, br, center
rmTagIfNoAttrib = span, div, font
# htmlSpecialChars = 1
## align attribute werden erlaubt
tags {
p.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: Ausrichtung
buttons.blockstyle.tags.div.allowedClasses (
align-left, align-center, align-right
)
# Classes: Eigene Stile
buttons.textstyle.tags.span.allowedClasses = author, beschreibung, preis, titel, dinbold
buttons.image.properties.class.allowedClasses = rte_image
# 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 alles CSS-Klassen die in formate.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-Option (cellspacing / cellpadding / border)
disableSpacingFieldsetInTableOperations = 1
disableAlignmentFieldsetInTableOperations = 1
disableColorFieldsetInTableOperations = 1
disableLayoutFieldsetInTableOperations = 1
disabelBordersFieldsetInTableOperations = 0
}
# Use same processing as on enty to database to clean content pasted tin 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 >
# Breit des RTE in Fullscreen-Ansicht
TCEFORM.tt_content.bodytext.RTEfullscreenScreenWidth = 80%
Die Konfiguration hab ich mir hier aus dem Forum zusammengesucht. Bisher funktionierte die auch perfekt. Der Editor nimmt wirklich keiner einzigen Einstellung an. Ich habs auch abgespeckt aufs Minimum (nur das rte.css laden oder die Buttons ein-/ausblenden)... Ohne Erfolg. Der Editor steht auch im Demo-Modus.
Bin für jeden Tipp dankbar.