---
title: "<p class\"bodytext\"> um ALLES - verhindern?"
url: "https://www.typo3.net/d/33125-p-classbodytext-um-alles-verhindern"
source: "typo3.net"
tags: ["Backend","RTE & CKEditor","Frage","HTML & CSS"]
created: "2005-11-11"
last_reply: "2006-02-26"
replies: 6
solved: true
page: 1
pages: 1
lang: "de"
---

# <p class"bodytext"> um ALLES - verhindern?

Backend › RTE & CKEditor · 6 Antworten · gelöst · gestartet 2005-11-11

## Frage

**Unbekannter Benutzer** · 2005-11-11 · [Beitrag #1](https://www.typo3.net/d/33125-p-classbodytext-um-alles-verhindern/1)

Huhu,

habe folgendes Problem: bei mir wird ein <p class="bodytext"> um den kompletten Inhalt des RTE gewrapped, allerdings erst im Frontend.

Beispiel:

```html
<p class="bodytext">
<h1>Überschrift</h1>
<h2>Überschrift</h2>
<p>Das ist ein Text.</p>
<p>Das auch!</p>
</p>
```

Mein TSConfig:

```typoscript
setup.default.edit_RTE = 1

RTE.default >

RTE.default {

  disableColorPicker = 1
  hidePStyleItems=H4,H5,H6,PRE,ADDRESS
  showButtons = *
  hideButtons = inserttag,emoticon,strikethrough,subscript,superscript,justifyfull,insertorderedlist,outdent,indent,textcolor,forecolor,hilitecolor,bgcolor,textindicator,inserthorizontalrule,popupeditor,lefttoright,righttoleft,fontname,fontsize,fontstyle,user,acronym,line
  blindImageOptions = magic
  enableWordClean = 1
  showTagFreeClasses = 1
  contentCSS = fileadmin/templates/css/rte.css
  mainStyle_font=verdana, sans-serif
  removeTags = font
  removeComments = 1

  proc {

    typolist = 1
    dontConvBRtoParagraph = 1
    allowTagsInTypolists = br,strong,em,u,a,img,span,div,p,li,ul
    denyTags = *
    allowTags = img, table, tr, td, thead, tbody, th, h1, h2, h3, div, p, br, ul, ol, li, pre, blockquote, strong, em, a
    preserveTables = 1
    allowTagsOutside=SPAN,IMG,TABLE,TD,TR,UL,LI
    allowedClasses >

    entryHTMLparser_db = 1
    entryHTMLparser_db {

      allowTags < RTE.default.proc.allowTags
      xhtml_cleaning = 1
      htmlSpecialChars = 0
      noAttrib = b, i, u, strike, sub, sup, strong, em, quote,  blockquote, cite, tt, br
      rmTagIfNoAttrib= span,div,font
      tags.b.remap = strong
      tags.i.remap = em
      removeTags = sdfield
      keepNonMatchedTags = 1

      }

    }

  }

RTE.config.tt_content.bodytext < RTE.default
```

Hat jemand eine Idee?

Dank im Voraus.

## Beste Antwort

**Unbekannter Benutzer** · 2005-11-11 · [Beitrag #3](https://www.typo3.net/d/33125-p-classbodytext-um-alles-verhindern/3)

hmm, die klasse ist weg, aber der p drumrum bleibt. hab beides ins template ts getan, weils im tsconfig nix gebracht hat, falsch? danke schonma.

## Antworten

### [#2](https://www.typo3.net/d/33125-p-classbodytext-um-alles-verhindern/2) · humpun · 2005-11-11

```typoscript
lib.parseFunc_RTE.nonTypoTagStdWrap.encapsLines.addAttributes.P.class >
```

Das sollte das bodytext wegmachen als Klasse.

Das ganze P drumherum kriegst du per :

```typoscript
 tt_content.text.20.parseFunc.nonTypoTagStdWrap.encapsLines >
      tt_content.text.20.parseFunc.nonTypoTagStdWrap.encapsLines {
        encapsTagList = div,p
        removeWrapping = 1
        wrapNonWrappedLines = |<br>
      }
```

weg.

Mfg

humpun

### [#3](https://www.typo3.net/d/33125-p-classbodytext-um-alles-verhindern/3) · Unbekannter Benutzer · 2005-11-11 · Beste Antwort

(Text siehe oben unter „Beste Antwort“.)

### [#4](https://www.typo3.net/d/33125-p-classbodytext-um-alles-verhindern/4) · akonze · 2005-11-11

Einfach beide Code Teile in dein Template in den Setup Bereich ganz nach unten stellen, dann solte es funktionieren. Habe es mal bei mir getestet und es läuft einwandfrei. Den BR Tag solltest du in dem Beispiel aber noch sauber schliessen, sonst ist es kein valides HTML.

### [#5](https://www.typo3.net/d/33125-p-classbodytext-um-alles-verhindern/5) · DiePicknickerin · 2005-11-20

Hallo, mal ne Frage dazu:

Hat es eine Auswirkung, wenn das RTE-Config im Template Setup ziemlich weit oben steht?
Ich wundere mich gerade darüber, habs aber noch nicht ausprobiert...

Gruß, Miriam

### [#6](https://www.typo3.net/d/33125-p-classbodytext-um-alles-verhindern/6) · Mauki · 2006-02-21

> **humpun schrieb:**
>
> ```typoscript
> lib.parseFunc_RTE.nonTypoTagStdWrap.encapsLines.addAttributes.P.class >
> ```
>
> Das sollte das bodytext wegmachen als Klasse.
>
> Das ganze P drumherum kriegst du per :
>
> ```typoscript
>  tt_content.text.20.parseFunc.nonTypoTagStdWrap.encapsLines >
>       tt_content.text.20.parseFunc.nonTypoTagStdWrap.encapsLines {
>         encapsTagList = div,p
>         removeWrapping = 1
>         wrapNonWrappedLines = |<br />
>       }
> ```
>
> weg.

Hab das auch mal ausprobiert, aber meine <p> Tags sind nachwievor vorhanden ?

Ist das eigentlich richtig das hier am Schluß nur ein > steht aber am Anfang kein < ?

```typoscript
lib.parseFunc_RTE.nonTypoTagStdWrap.encapsLines.addAttributes.P.class >
```

### [#7](https://www.typo3.net/d/33125-p-classbodytext-um-alles-verhindern/7) · onetit · 2006-02-26

Danke

Das ich hatte auch das Problem.
Bei mir hats funktioniert und der P Tag ist weg.

Danke
onetit

---

Quelle: „<p class"bodytext"> um ALLES - verhindern?“, typo3.net, https://www.typo3.net/d/33125-p-classbodytext-um-alles-verhindern
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
