Zum Inhalt springen

Font-Tag - nur diesam NICHT entfernen

Erstellt am 10. Juni 2008 · Noch keine Antworten

Tags: Frage

FordPrefect ·

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:

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