---
title: "HTML Area Konfiguration - Style fliegt raus?!?!"
url: "https://www.typo3.net/d/43222-html-area-konfiguration-style-fliegt-raus"
source: "typo3.net"
tags: ["Backend","RTE & CKEditor","Frage"]
created: "2006-05-17"
last_reply: "2006-05-17"
replies: 2
solved: false
page: 1
pages: 1
lang: "de"
---

# HTML Area Konfiguration - Style fliegt raus?!?!

Backend › RTE & CKEditor · 2 Antworten · gestartet 2006-05-17

## Eröffnungsbeitrag

**Spyker** · 2006-05-17 · [Beitrag #1](https://www.typo3.net/d/43222-html-area-konfiguration-style-fliegt-raus/1)

Hallo,

ich soll den RTE einer Seite anpassen und weiß langsamm nicht mehr weiter. Das Problem ist das die Farbwahl mit dem Editor mittels "style" hinzugefügt wird. Egal wie ich es aber mache. style im p oder style im span. Es fliegt beim speichern immer raus.

Die Konfiguration davon ist ein einziges Caos, aber ich habe es schon geprüft finde aber den Fehler nicht.

Vielleicht kann ja ein geschultes Typo3-Auge mal einen Blick da drauf werfen.

Danke,
Tim

```typoscript
RTE.default {

   disableEnterParagraphs = 1
   blindImageOptions = magic
   contentCSS = fileadmin/template/rte.css
   classesCharacter = wichtig, weiss, scrolltext, scrollwichtig, scrollheadline
   enableWordClean = 1

  allowTagsOutside = img,hr

  allowTags = table,tbody,tr,th,td,h1,h2,h3,h4,h5,h6,div,p,br,span,ul,ol,li,pre,blockquote,strong,em,b,i,u,sub,sup,strike,a,img,nobr,hr,tt,q,cite,abbr,acronym

  removeTags = sdfield
  removeTagsAndContents = script
  #style

  showButtons = chMode, bar, cut, copy, paste, bar, undo, redo, bar, findreplace, spellcheck, removeformat, acronym, insertcharacter, acronym, inserttag, textindicator, bold, italic, subscript, superscript, left, center, right, justifyfull, orderedlist, unorderedlist, outdent, indent, textcolor, bgcolor, line, link, image, blockstylelabel, blockstyle, textstylelabel, textstyle, formatblock, table, toggleborders, tableproperties, rowproperties, rowinsertabove, rowinsertunder, rowdelete, rowsplit, columninsertbefore, columninsertafter, columndelete, columnsplit, cellproperties, cellinsertbefore, columninsertafter, celldelete, cellsplit, cellmerge, fontstyle, fontsize, underline, emoticon
  toolbarOrder = chMode, bar, cut, copy, paste, bar, undo, redo, bar, findreplace, spellcheck, removeformat, acronym, insertcharacter, acronym, inserttag, textindicator, linebreak, bold, italic, underline, subscript, superscript, left, center, right, justifyfull, orderedlist, unorderedlist, outdent, indent, textcolor, bgcolor, linebreak, fontstyle, fontsize, line, link, image, linebreak, blockstylelabel, blockstyle, textstylelabel, textstyle, formatblock, linebreak, table, toggleborders, tableproperties, rowproperties, rowinsertabove, rowinsertunder, rowdelete, rowsplit, columninsertbefore, columninsertafter, columndelete, columnsplit, cellproperties, cellinsertbefore, columninsertafter, celldelete, cellsplit, cellmerge, emoticon
  hideButtons = strikethrough, lefttoright, righttoleft, user, showhelp, about

  hidePStyleItems = PRE
  #hideTags = font, font (full)

  proc {
    overruleMode = ts
    dontConvBRtoParagraph = 1
    #denyTags = font
    // XHTML COMPLIANCE
    xhtml_cleaning = 1

    allowTags = font,table,tbody,tr,th,td,h1,h2,h3,h4,h5,h6,div,p,br,span,ul,ol,li,pre,blockquote,strong,em,b,i,u,sub,sup,strike,a,img,nobr,hr,tt,q,cite,abbr,acronym

    // CLEAN TAGS
    noAttrib = b,i,u,strike,sub,sup,strong,em,quote,blockquote,cite,tt,br,center
    tags.font.allowedAttribs = color,style
    tags.hr.allowedAttribs = class
    tags.p.allowedAttribs = *
    tags.img.allowedAttribs = *

    // REMAP B AND I TAGS
    tags.b.remap = strong
    tags.i.remap = em

    // remove Tags which have no attributes
    rmTagIfNoAttrib = span,div,font
    entryHTMLparser_db = 1
    entryHTMLparser_db {
        xhtml_cleaning = 1
       #denyTags = font
       rmTagIfNoAttrib = span,div
       tags {
          ## REMOVE IMG TAGS
          allowTags < RTE.default.proc.allowTags
          img.allowedAttribs = src,alt,title,border,width,height
          img.rmTagIfNoAttrib = 0
          p.allowedAttribs = *
       }
       removeTags = center, sdfield, strike,
       # font, u

## PROTECT CUSTOM TAGS
keepNonMatchedTags = protect
    }
  }
}
```

## Antworten

### [#2](https://www.typo3.net/d/43222-html-area-konfiguration-style-fliegt-raus/2) · ms_k · 2006-05-17

hallo,

schups mal die Zeile von RTE.default

```typoscript
classesCharacter = wichtig, weiss, scrolltext, scrollwichtig, scrollheadline
```

nach RTE.default.proc

und ergänz nochmal um

```typoscript
RTE.default {
...

classesCharacter = [deine CSS]
showTagFreeClasses = 1
}
```

Dann könnte es schon funktionieren. Wie sehen denn deine definierten Styles in
contentCSS = fileadmin/template/rte.css

Sind die ersten Sachen die mir aufgefallen sind, aber ansonsten vergleich doch mal weiter mit meinem Post dort: [/d/39948-htmlarea-rte-konfiguration-so-gehts](https://www.typo3.net/d/39948-htmlarea-rte-konfiguration-so-gehts)

Viele Grüße
ms_k

### [#3](https://www.typo3.net/d/43222-html-area-konfiguration-style-fliegt-raus/3) · Spyker · 2006-05-17

Danke für die Antwort... aber das sieht mehr nach CSS classen aus. (Wnn ich mich Irre bitte bescheid geben)... ich meine aber das style Atrribute!!

Beste,
Tim

---

Quelle: „HTML Area Konfiguration - Style fliegt raus?!?!“, typo3.net, https://www.typo3.net/d/43222-html-area-konfiguration-style-fliegt-raus
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
