---
title: "RTE Konfiguration"
url: "https://www.typo3.net/d/110947-rte-konfiguration"
source: "typo3.net"
tags: ["Backend","RTE & CKEditor","Frage"]
created: "2012-06-12"
last_reply: "2013-02-26"
replies: 6
solved: false
page: 1
pages: 1
lang: "de"
---

# RTE Konfiguration

Backend › RTE & CKEditor · 6 Antworten · gestartet 2012-06-12

## Eröffnungsbeitrag

**timmy2007** · 2012-06-12 · [Beitrag #1](https://www.typo3.net/d/110947-rte-konfiguration/1)

Ich hab die aktuelle Typo3 Version mit der aktuellen rtehtmlarea Version.

Meine Konfiguration in den Seiteneigenschaften meiner ROOT Page als TS-Config lautet:

```typoscript
#*** RTE Classe des Interface (Ausrichtung)
###### Vorlage: http://www.sk-typo3.de/RTE-Standardkonfiguration.31.0.html
# *** Entfernt das Bild vor den Links
RTE.classesAnchor {
  internalLink {
    class = internal-link
    type = page
    image >
  }
  externalLink {
    class = external-link
    type = url
    image >
  }
  externalLinkInNewWindow {
    class = external-link-new-window
    type = url
    image >
  }
  internalLinkInNewWindow {
    class = internal-link-new-window
    type = page
    image >
  }
  download {
    class = download
    type = file
    image >
  }
  mail {
    class = mail
    type = mail
    image >
  }
}
 
 
## RTE Konfiguration
RTE.default {
 
  # Zuweisung der CSS-Datei
  # contentCSS = core_styles.css
 
  ## Markup options
  enableWordClean = 1
  removeTrailingBR = 1
  removeComments = 1
  removeTags = center, sdfield
  removeTagsAndContents = style,script
 
  # Buttons die gezeigt/versteckt werden
  showButtons = textstyle, textstylelabel, formatblock, blockstyle, blockstylelabel, bold, italic, underline, left, center, right, orderedlist, unorderedlist, insertcharacter, line, link, image, removeformat, table, toggleborders, tableproperties, rowproperties, rowinsertabove, rowinsertunder, rowdelete, rowsplit, columninsertbefore, columninsertafter, columndelete, columnsplit, cellproperties, cellinsertbefore, cellinsertafter, celldelete, cellsplit, cellmerge, findreplace, insertcharacter, undo, redo, showhelp, about, chMode, insertag
  hideButtons = fontstyle, fontsize, strikethrough,lefttoright, righttoleft, textcolor, bgcolor,  textindicator, emoticon, user, spellcheck, outdent, indent, justifyfull, subscript, superscript, acronym, copy, cut, paste
 
  # HÃ¤lt die RTE Icons gegroupt zusammen
  keepButtonGroupTogether = 1
 
  # blendet Statusbar in htmlarea aus
  showStatusBar =  0
 
  ## Use stylesheet file rather than the above mainStyleOverride and inlineStyle properties to 
  ## style the contents (htmlArea RTE only)
  ignoreMainStyleOverride = 1
 
  proc {

    # tags die erlaubt / verboten sind
    allowTags = table, tbody, tr, th, td, h1, h2, h3, h4, h5, h6, div, p, br, span, ul, ol, li, re, blockquote, strong, em, b, i, u, sub, sup, strike, a, img, nobr, hr, tt, q, cite, abbr, acronym, center
    denyTags = font
 
    # br wird nicht zu p konvertiert
    dontConvBRtoParagraph = 1
 
    # tags sind erlaubt auÃŸerhalt von p, div
    allowTagsOutside = img,hr

    # tags sind erlaubt innerhalb von p, div
    allowedTagsInside = span
 
    # erlaubte attribute in p, div tags
    keepPDIVattribs = align,class,style,id
   
    # die eigenen Klassen erlauben
    #allowedClasses = textgruen, textrot, hometeaser
    #classesParagraph = textgruen, textrot, hometeaser
 
    # List all class selectors that are allowed on the way to the database
    allowedClasses (
      external-link, external-link-new-window, internal-link, internal-link-new-window, download, mail,
      align-left, align-center, align-right, author, hometeaser, textgruen, textrot
    )       
 
    # html parser einstellungen
    HTMLparser_rte {
 
      # tags die erlaubt/verboten sind
      allowTags < RTE.default.proc.allowTags
      denyTags < RTE.default.proc.denyTags
 
      # tags die untersagt sind
      removeTags = font
 
      # entfernt html-kommentare
      removeComments = 1
 
      # tags die nicht Ã¼bereinstimmen werden nicht entfernt (protect / 1 / 0)
      keepNonMatchedTags = 0
    }
 
 
    # Content to database
    entryHTMLparser_db = 1
    entryHTMLparser_db {
 
      # tags die erlaubt/verboten sind
      allowTags < RTE.default.proc.allowTags
      denyTags < RTE.default.proc.denyTags
 
      # CLEAN TAGS
      noAttrib = b, i, u, strike, sub, sup, strong, em, quote, blockquote, cite, tt, br, center
 
      rmTagIfNoAttrib = span,div,font
 
      htmlSpecialChars = -1
 
      ## align attribute werden erlaubt
      tags {
        span.fixAttrib.style.unset = 1
        p.fixAttrib.align.unset = 1
        div.fixAttrib.align.unset = 1
        span.allowedAttribs = class
        p.allowedAttribs = class
        hr.allowedAttribs = class
        b.allowedAttribs = xml:lang
        blockquote.allowedAttribs = xml:lang
        cite.allowedAttribs = xml:lang
        em.allowedAttribs = xml:lang
        i.allowedAttribs = xml:lang
        q.allowedAttribs = xml:lang
        strong.allowedAttribs = xml:lang
        sub.allowedAttribs = xml:lang
        sup.allowedAttribs = xml:lang
        tt.allowedAttribs = xml:lang
 
        ## img tags werden erlaubt
        img >
      }
    }
 
  }
 
  # zeigt alle CSS-Klassen die in symrise_rte.css vorhanden sind
  showTagFreeClasses = 1
 
  # Do not allow insertion of the following tags
  hideTags = font
 
  # Tabellen Optionen in der RTE Toolbar
  hideTableOperationsInToolbar = 0
  keepToggleBordersInToolbar = 1
 
  # Tabellen Editierungs-Optionen (cellspacing/ cellpadding / border)
  disableSpacingFieldsetInTableOperations = 1
  disableAlignmentFieldsetInTableOperations=1
  disableColorFieldsetInTableOperations=1
  disableLayoutFieldsetInTableOperations=1
  disableBordersFieldsetInTableOperations=0
}
 
# Use same processing as on entry to database to clean content pasted into the editor
RTE.default.enableWordClean.HTMLparser < RTE.default.proc.entryHTMLparser_db
 
# FE RTE configuration (htmlArea RTE only)
RTE.default.FE < RTE.default
RTE.default.FE.userElements >
RTE.default.FE.userLinks >
 
# Breite des RTE in Fullscreen-Ansicht
TCEFORM.tt_content.bodytext.RTEfullScreenWidth= 80%
 
# Span innerhalb von <P> Tags nicht lÃ¶schen
RTE.default.proc.HTMLparser_db.tags.span.allowedAttribs = lang, title, span, class 

RTE.default {
contentCSS = fileadmin/templates/rte.css
# showButtons =  blockstylelabel, blockstyle, textstylelabel, textstyle, fontstyle,bold, italic, orderedlist, unorderedlist, link,table, copy, cut, paste, undo, redo, showhelp, about, toggleborders, tableproperties, rowproperties, rowinsertabove, rowinsertunder, rowdelete, rowsplit, columninsertbefore, columninsertafter, columndelete, columnsplit, cellproperties, cellinsertbefore, cellinsertafter, celldelete, cellsplit, cellmerge, chMode
useCSS = 1

# von HTML-Tags unabhÃ¤ngige Klassen einblenden
showTagFreeClasses = 0 
# classesCharacter := addToList(neu)
# classesParagraph := addToList(info)
classesTable = standard,spezial
classesTD = standardFett,standardDunkel
}

# Klassendarstellung im Backendformular
RTE.classes {
	standard{
	name = Standard-Tabelle
	}
	spezial{
	name = Spezial-Tabelle
	}
	standardDunkel{
	name = Zelle dunkel
	value = color: #333333;
	}	
	standardFett{
	name = Zelle fett
	value = font-weight:bold;color: #dddddd;
	}	

}
# Klassen zur Liste der erlaubten Klassen hinzufÃ¼gen
RTE.default.proc{
allowedClasses := addToList(standard,spezial,standardFett,standardKursiv)
classesTable := addToList(standard,spezial)
classesTD := addToList(standardFett,standardDunkel)
}
# Automatisch Link nach oben setzen
#  TCAdefaults.tt_content.linkToTop = 1
```

Man sieht unter anderem, dass ich die Fettschrift mit strong zulasse, aber beim RTE ändert sich im Backend nichts. Ich kann nur "b" für Fettschrift auswählen, aber "strong" taucht nicht auf.

Kann es an der Grundeinstellung des RTE liegen, der derzeit im Demo-Modus arbeitet?

## Antworten

### [#2](https://www.typo3.net/d/110947-rte-konfiguration/2) · igorshmigor · 2012-06-12

Ich habe das bei mir so gelöst, dass die <b>-Tags einfach in <strong>-Tags umgewandelt werden (das gleiche für i und em):

```typoscript
lib.parseFunc_RTE.tags{
    b=TEXT
    b{
    current=1
    wrap= <strong>|</strong>
    }
    i=TEXT
    i{
    current=1
    wrap= <em>|</em>
    }
}
```

### [#3](https://www.typo3.net/d/110947-rte-konfiguration/3) · timmy2007 · 2012-06-12

> **igorshmigor schrieb:**
>
> Ich habe das bei mir so gelöst, dass die <b>-Tags einfach in <strong>-Tags umgewandelt werden (das gleiche für i und em):
>
> ```typoscript
> lib.parseFunc_RTE.tags{
>     b=TEXT
>     b{
>     current=1
>     wrap= <strong>|</strong>
>     }
>     i=TEXT
>     i{
>     current=1
>     wrap= <em>|</em>
>     }
> }
> ```

Habe es im Code eingefügt, aber es bleibt beim Alten. Gibt es evtl. noch eine Einstellung beim RTE oder ein Cache des RTE, der mir da einen Strich durch die Rechnung macht?

### [#4](https://www.typo3.net/d/110947-rte-konfiguration/4) · igorshmigor · 2012-06-12

Hast Du es im PageTSConfig oder im TypoScript Setup eingefügt? Das gehört nämlich ins Setup. Ansonsten vielleicht nochmal Setencache löschen.

### [#5](https://www.typo3.net/d/110947-rte-konfiguration/5) · FabianX · 2012-08-14

Habe gerade auch ein Problem damit.

Ich würde gerne meine Liste anders stylen.

Der hier angebotene Code funktioniert bei mir:

lib.parseFunc_RTE.tags{
    b=TEXT
    b{
    current=1
    wrap= <strong>|</strong>
    }
    li=TEXT
    li{
    current=1
    wrap= <li><div></div>|</li>
    }
}

Allerding geht es nur mit "b" oder "i" aber bei li tut sich einfach nichts.
Es wird auch nirgends überschrieben hab eine neue Seite angelegt und dort ein Extension Template und nur diesen code ins Setup eingefügt.

Die Manipulation von "b" funktioniert einwandfrei aber bei den "li" tut sich einfach gar nichts :(

Hat jemand eine Idee ?

### [#6](https://www.typo3.net/d/110947-rte-konfiguration/6) · FabianX · 2012-08-20

Keiner eine Idee ?

Theoretisch ist der Code korrekt oder ?

### [#7](https://www.typo3.net/d/110947-rte-konfiguration/7) · danton · 2013-02-26

Das Problem interessiert mich auch.
Bei mir funzt das bei einer Liste auch nicht.
TYPO3 4.7.4

---

Quelle: „RTE Konfiguration“, typo3.net, https://www.typo3.net/d/110947-rte-konfiguration
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
