---
title: "RTE verhält sich komisch"
url: "https://www.typo3.net/d/15254-rte-verhaelt-sich-komisch"
source: "typo3.net"
tags: ["Backend","RTE & CKEditor","Frage"]
created: "2004-08-27"
last_reply: "2004-08-30"
replies: 2
solved: false
page: 1
pages: 1
lang: "de"
---

# RTE verhält sich komisch

Backend › RTE & CKEditor · 2 Antworten · gestartet 2004-08-27

## Eröffnungsbeitrag

**ben** · 2004-08-27 · [Beitrag #1](https://www.typo3.net/d/15254-rte-verhaelt-sich-komisch/1)

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:

```html
<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:

```html
<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:

```css
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:

```css
.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#

## Antworten

### [#2](https://www.typo3.net/d/15254-rte-verhaelt-sich-komisch/2) · Hille · 2004-08-30

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

### [#3](https://www.typo3.net/d/15254-rte-verhaelt-sich-komisch/3) · ben · 2004-08-30

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

---

Quelle: „RTE verhält sich komisch“, typo3.net, https://www.typo3.net/d/15254-rte-verhaelt-sich-komisch
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
