Zum Inhalt springen

RTE verhält sich komisch

Erstellt am 27. August 2004 · 2 Antworten · letzte Antwort am 30. August 2004

Tags: Frage

ben ·

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#

Hille ·

Hallo,
Du musst jedesmal wenn die die Schrift-Klassen wechsels, also von Überschrift zum Bodytext, immer die entsprechende Klasse aus dem Absatzart setzen Dialog auswählen.
Ansonsten ist wird die Standard-Einstellung aus den Eingebundnen Resourcen Cset oder CStylesheet eingebunden..

Gruß
Hille

ben ·

Ja, aber die Standardeinstellung sollte doch laut meinem css 8pt sein. Woher bekommt der die 10pt?