Wenn ich mit dem RTE einfach drauf los schreibe ohne eine Klasse auszuwählen, formatiert er mir den Text so, wie ich es haben will
Im RTE schaut es so aus:
<P>Dies ist ein Test</P>
<P>Dies ist ein Test</P>
<P>Dies ist ein Test</P>
<P>Dies ist ein Test</P>
Im FE habe ich dann den Text, mit Zeilenumbruch.
Ausgabe ist wie folgt:
font-family: Arial;
font-size : 8pt;
color: black;
--> Perfekt 🙂
Wenn ich nun aber irgendwo zwischendrin mal ne Überschrift reinmache schaut es im RTE so aus:
<P>Dies ist ein Test</P>
<DIV class=Headline>Dies ist ein Test</DIV>
<P>Dies ist ein Test</P>
<P>Dies ist ein Test</P>
Nun ist die 1. Zeile in Arial, 8pt,
die 2. Zeile meine Headline
die 3. Zeile wieder in Arial, jedoch nun mit 10(!)pt????
Hab im TS nun schon viel Rumprobiert, finde aber den Fehler nicht.
Hier mein momentaner Inhalt:
RTE.default.proc.dontConvBRtoParagraph=1
RTE.default {
mainStyleOverride {
BODY {
font-family: Arial;
font-size : 8pt;
color: black;
text-decoration: none;
}
P {
font-family: Arial;
font-size : 8pt;
color: black;
text-decoration: none;
}
TD {
font-family: Arial;
font-size : 8pt;
color: black;
text-decoration: none;
}
DIV {
font-family: Arial;
font-size : 8pt;
color: black;
text-decoration: none;
}
OL {
font-family: Arial;
font-size : 8pt;
color: black;
text-decoration: none;
}
UL {
font-family: Arial;
font-size : 8pt;
color: black;
text-decoration: none;
}
BLOCKQUOTE {
font-family: Arial;
font-size : 8pt;
color: black;
text-decoration: none;
}
PRE {
font-family: Arial;
font-size : 8pt;
color: black;
text-decoration: none;
}
}
}
RTE.default {
mainStyle_font = Arial
mainStyle_size = 8pt
mainStyle_color = #000000
}
RTE.classes {
Headline {
name = Headline
value = font-family: Arial;font-size : 12pt;color : #80A36D;margin-bottom : 0pt;text-transform: uppercase;padding-bottom : 0pt; font-weight: bold;
}
Fliesstext {
name = Fliesstext
value = font-family: Arial;font-size : 8pt;color: black;text-decoration: none;
}
}
RTE.default {
classesParagraph = Headline,Fliesstext
hidePStyleItems = H1,H2,H3,H4,H5,H6,PRE,P
}
# Verhindert die Eingabe bestimmter Elemente im Rich Text Editor
RTE.default.proc {
denyTags = font,span,pre,P
allowedClasses = Headline,Fliesstext
}
Hier ein Auszug aus meiner Stylesheet:
.Headline {
font-family: Arial;
font-size : 12pt;
color : #80A36D;
margin-bottom : 2pt;
text-transform: uppercase;
padding-bottom : 0pt;
font-weight: bold;
}
.Fliesstext {
font-family: Arial;
font-size : 8pt;
color: black;
}
p {
font-family: Arial;
font-size : 8pt;
color: black;
}
Habe ich da nen Fehler gemacht, oder liegt das am Verhalten des RTE? #paralyzed#