---
title: "Font-Tag - nur diesam NICHT entfernen"
url: "https://www.typo3.net/d/78281-font-tag-nur-diesam-nicht-entfernen"
source: "typo3.net"
tags: ["Backend","RTE & CKEditor","Frage"]
created: "2008-06-10"
last_reply: "2008-06-10"
replies: 0
solved: false
page: 1
pages: 1
lang: "de"
---

# Font-Tag - nur diesam NICHT entfernen

Backend › RTE & CKEditor · 0 Antworten · gestartet 2008-06-10

## Eröffnungsbeitrag

**FordPrefect** · 2008-06-10 · [Beitrag #1](https://www.typo3.net/d/78281-font-tag-nur-diesam-nicht-entfernen/1)

Hallo Forum,

ich spiele nun schon seit einer Stunde mit den RTE-Konfig herum um es zu erreichen das der Font-Tag nicht entfernt wird, auch nicht die Attribute des Font-Tags. Für die Table-Tags col und colgroup geht es, jedoch nicht für den Font-Tag. Ich weiss, Font-Tag sollte nicht mehr verwendet werden. Aber eine andere Agentur hat für unseren Kunden nette Tabellen entwickelt die in den RTE kopiert wurden und dort sind nun Font-Tags vorhanden.

Hier meine momentane Page-TS-Config:

```typoscript
RTE.default.useCSS = 1
RTE.default.contentCSS = fileadmin/system/css/rte.css

RTE.default.proc {
dontConvBRtoParagraph = 1

allowTags = font, colgroup, col, table, tbody, tr, th, td, h1, h2, h3, h4, h5, h6, div, p, br, ul, ol, li, re, blockquote, strong, em, b, i, u, span, sub, sup, strike, a, img, nobr, hr, tt, q, cite, abbr, acronym, pre
allowTagsOutside = img, hr, span, font
denyTags =
removeTags =
keepPDIVattribs = align, class, style
   HTMLparser_rte {        
        allowTags = font, colgroup, col, table, tbody, tr, th, td, h1, h2, h3, h4, h5, h6, div, p, br, ul, ol, li, re, blockquote, strong, em, b, i, u, span, sub, sup, strike, a, img, nobr, hr, tt, q, cite, abbr, acronym, pre
        denyTags =
        removeTags =
        removeTags := removeFromList(bgcolor,underline, u)
        tags.p.allowedAttribs = class, align, style
        tags.font.allowedAttribs = color, size, bgcolor, fontsize
        keepNonMatchedTags = 1
        }

   HTMLparser_db {       
        allowTags = font, colgroup, col, table, tbody, tr, th, td, h1, h2, h3, h4, h5, h6, div, p, br, ul, ol, li, re, blockquote, strong, em, b, i, u, span, sub, sup, strike, a, img, nobr, hr, tt, q, cite, abbr, acronym, pre
        denyTags =
        removeTags =
        tags.p.allowedAttribs = class, align, style
        keepNonMatchedTags = 1
	removeTags := removeFromList(bgcolor,underline, u)
	tags.font.allowedAttribs = color, size, bgcolor, fontsize
        }
       
   entryHTMLparser_db = 1
   entryHTMLparser_db {
       htmlSpecialChars = 0
       allowTags = font, colgroup, col, form,input,table, tbody, tr,td,div,img,hr,b,i,u,a,br,pre,strong,em,li,ul,ol,h1,h2,h3,h4,h5,h6,span,p,b,th, pre
       denyTags =
       removeTags =
       tags.p.allowedAttribs = class, align, style
       tags.font.allowedAttribs = color, size, bgcolor, fontsize
       removeTags := removeFromList(bgcolor,underline, u)
	
       // XHTML COMPLIANCE
       xhtml_cleaning = 1

       // CLEAN TAGS
       noAttrib = b, i, u, strike, sub, sup, strong, em, quote, blockquote, cite, tt, br, center
       tags.hr.allowedAttribs = class
       tags.p.allowedAttribs = style, class
	   
       // REMAP B AND I TAGS
       tags.i.remap = em
       tags.b.remap = strong

        rmTagIfNoAttrib = div,font
        keepNonMatchedTags = protect
        }       
}
```

Danke für Eure Hilfe.

Grüsse

---

Quelle: „Font-Tag - nur diesam NICHT entfernen“, typo3.net, https://www.typo3.net/d/78281-font-tag-nur-diesam-nicht-entfernen
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
