Hallo,
ich habe mit folgendem Typoscript mein RTE im Backend, sowie FE konfiguriert. Im FE klappt das auch alles, alle Formatierungen im Text, sowie die Einschränkung der angezeigten Buttons. Im BE werden aus showButtons entfernte Buttons trotzdem angezeigt (z.b indent, outdent) und komischerweise werden auch die Formatierungen nicht mehr abgespeichert, das funktionierte zu einem früheren Zeitpunkt schon, danach habe ich den FE RTE angepasst, seitdem geht es wohl nicht mehr. Hier mein Code, sorry ein bisschen lang!
### 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;
}
}
### RTE default ###
RTE.default {
contentCSS = fileadmin/templates/css/rte.css
useCSS = 1
showTagFreeClasses = 1
showStatusBar = 0
showButtons (
blockquote, insertparagraphbefore, insertparagraphafter, formattext, bidioverride, big, bold, citation, code, definition, deletedtext,
emphasis, insertedtext, italic, keyboard, monospaced, quotation, sample, small, span, strong, underline, textcolor, insertcharacter, paste
)
### 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, link
denyTags = font
removeTags = removeFromList(u)
### 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, h3.align-left, h4.align-left, h5.align-left, h6.align-left, td.align-left { text-align: left; }
p.align-center, h1.align-center, h2.align-center, h3.align-center, h4.align-center, h5.align-center, h6.align-center, td.align-center { text-align: center; }
p.align-right, h1.align-right, h2.align-right, h3.align-right, h4.align-right, h5.align-right, h6.align-right, td.align-right { text-align: right; }
)
proc {
overruleMode = ts_css
### 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 (
align-left, align-center, align-right, author
)
# 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
### b und i tags werden ersetzt (em / strong) ###
b.remap = strong
i.remap = em
### img tags werden erlaubt ###
img >
}
### entfernt u aus Liste der tags die vom HTML Parser auf dem Weg zur DB entfernt werden ###
removeTags = removeFromList(u)
}
}
### Classes: Ausrichtung ###
classesParagraph (
align-left, align-center, align-right
)
### Use same processing as on entry to database to clean content pasted into the editor ###
enableWordClean.HTMLparser < RTE.default.proc.entryHTMLparser_db
### FE RTE configuration (htmlArea RTE only) ###
FE < RTE.default
FE {
userElements >
userLinks >
showButtons (
blockquote, insertparagraphbefore, insertparagraphafter, formattext, bidioverride, big, bold, citation, code, definition, deletedtext,
emphasis, insertedtext, italic, keyboard, monospaced, quotation, sample, small, span, strong, underline, textcolor, insertcharacter, paste
)
proc {
allowedClasses < RTE.default.allowedClasses
}
skin = fileadmin/template/css/rte.css
}
}
Fällt jemandem was auf? Zu sagen ist noch, daß ich die Datei per include ins Seiten TS Config der rootSeite gepackt habe. Hilfe wäre super
Gruss
Boris