Hallo Leute,
ich steh leider vor einem Problem und Ärger mich schon eine ganze Weile damit rum. Vielleicht könnt ihr mir ja weiterhelfen:
Ich habe meinem htmlArea RTE beigebracht, zusätzliche Klassen auswählbar zu machen. Im RTE kann ich diese auch zuweisen und der gewünschte Bereich erhält auch die richtige Formatierung.
Bild: patchwork3d.de/…/typo3_editor.jpg
Sobald ich allerdings speichere, geht die Formatierung flöten. (das sehe ich bereits im Editor, denn nach der Speicherung habe ich normalen Text). Kann mir vielleicht von euch jemand sagen, warum das so ist und wie ich es beheben kann?
Hier kommt meine TSconfig:
RTE {
default {
contentCSS = fileadmin/rte_klassen/rte_klassen.css
showTagFreeClasses = 1
enableWordClean = 1
removeTrailingBR = 1
removeTagsAndContents = style,script
ignoreMainStyleOverride = 1
useCSS = 1
}
proc {
overruleMode = ts_css
allowTags = table,tbody,tr,th,td,h1,h2,h3,h4,h5,h6,div,p,br,span,strong,ul,ol,li,re,blockquote,em,b,i,u,sub,sup,strike,a,img,nobr,hr,tt,q,cite,abbr,acronym,center
denyTags = font
dontConvBRtoParagraph = 0
dontRemoveUnknownTags_db = 1
allowTagsOutside = img, hr, div
keepPDIVattribs = align,class,style,id
useDIVasParagraphTagForRTE = clear
allowedClasses (
text,titel
}
HTMLparser_rte {
allowTags < RTE.default.proc.allowTags
denyTags < RTE.default.proc.denyTags
removeTags = font
removeComments = 1
}
entryHTMLparser_db = 1
entryHTMLparser_db {
allowTags < RTE.default.proc.allowTags
denyTags < RTE.default.proc.denyTags
noAttrib = b,i,u,strong,tt,br,center
rmTagIfNoAttrib = span,div,font
tags {
p.fix.Attrib.align.unset >
p.allowedAttribs = class,style,align
div.fixAttrib.align.unset >
div.allowedAttribs = class,style,align
span.allowedAttribs = class,style,align
b.remap = strong
i.remap = em
}
}
exitHTMLparser_db = 1
exitHTMLparser_db {
html
}
}
classes {
titel {
name = Titel
value = background: #AAAAAA;
}
text {
name = Text
value = background: #CCCCCC;
}
}
}
RTE.default.enableWordClean.HTMLparser < RTE.default.proc.entryHTMLparser_db
Und hier kommt meine CSS Datei dazu:
.titel {
font-size: 200%;
font-weight: bold;
color: #d1d1d1;
}
.text {
font-size: 12px;
font-weight: normal;
}
Was ich mir vorgestellt hatte war eine Ausgabe wie "<p class="titel">...</p>" (noch lieber wär mir "<span class="titel">...</span>" aber eins nach dem anderen...) aber das wird wohl nicht gespeichert.
Vielen Dank im Voraus für jede Hilfe die Ihr mit geben könnt!
Viele Grüße
*Fuchur*
PS: Noch kurz zu den verwendeten Versionen:
Typo3 - 4.2.8
htmlArea RTE - 1.7.11