Zum Inhalt springen

Font Tags müssen weg

Erstellt am 23. Mai 2006 · Noch keine Antworten

Tags: Frage

gecko81 ·

Hallo. Mal wieder ne Frage zu HtmlArea RTE. Hab eigenlich alle Klassen in css definiert trotzdem bring der mir diese font-tags font face="Arial" size="2" color="black". wie krieg ich die weg

HTMl-Quelltext

<p class="zitat" style="margin:0 0 0 0;"><font face="Arial" size="2" color="black">Willkommen in der Welt der Headsets!<span style="font-weight: bold;"> </span></font></p>

TSConfig

## Default anchor classes configuration

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.default {
		## Default RTE configuration
	skin = EXT:rtehtmlarea/htmlarea/skins/default/htmlarea.css
	contentCSS = fileadmin/css/format.css
	enableWordClean = 1
	removeComments = 1
	removeTags = sdfield
	removeTagsAndContents = style,script
	useCSS = 1
	defaultLinkTarget =
	showStatusBar = 1
	showButtons = textstyle, textstylelabel, 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
        hideButtons = fontstyle, formatblock, fontsize, strikethrough,lefttoright, righttoleft, textcolor, bgcolor, textindicator, emoticon, user, spellcheck, chMode, inserttag, outdent, indent, justifyfull, subscript, superscript, acronym, copy, cut, paste
	hideTableOperationsInToolbar = 0
	disableContextMenu = 0
	disableSelectColor = 0
	disableTYPO3Browsers = 0
	disableEnterParagraphs = 0
	hidePStyleItems =
	hideFontSizes =
	hideTags = font, font (full)
	disableColorPicker = 0
	classesCharacter = 
	classesImage = bildRechts, bildLinks
	classesAnchor = 
	showTagFreeClasses = 1

		## Default proc rules
	proc {

			## TRANSFORMATION METHOD
		overruleMode = ts_css

			## LINES CONVERSION
		dontConvBRtoParagraph = 1

			## BRING FONT TAGS INSIDE PARAGRAPHS
		internalizeFontTags = 1

			## TAGS ALLOWED OUTSIDE P & DIV
		allowTagsOutside = img,hr,address

			## TAGS ALLOWED
		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, link, img, nobr, hr, center, font, tt, q, cite, abbr, acronym, address, sdfield

			## TAGS DENIED
		denyTags >

			## ALLOWED P & DIV ATTRIBUTES
		keepPDIVattribs = class, style

			## ALLOWED CLASSES
		allowedClasses = _

			## CONTENT TO DATABASE
		entryHTMLparser_db = 1
		entryHTMLparser_db {

				## TAGS ALLOWED
			allowTags < RTE.default.proc.allowTags

				## XHTML COMPLIANCE
			xhtml_cleaning = 1

				## AVOID TO HSC TWICE
			htmlSpecialChars = 0

				## CLEAN TAGS
			tags.hr.allowedAttribs = class
			noAttrib = b, i, u, strike, sub, sup, strong, em, quote, blockquote, cite, tt, br, center

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

				## REMOVE OPEN OFFICE META TAGS
			removeTags = sdfield

				## PROTECT CUSTOM TAGS
			keepNonMatchedTags = protect
		}
	}
}

	## front end RTE configuration
RTE.default.FE < RTE.default
RTE.default.FE.showStatusBar = 0
RTE.default.FE.hideButtons = chMode

	## tt_content RTE configuration
RTE.config.tt_content.bodytext.showButtons = *

	## tt_content TCEFORM configuration
TCEFORM.tt_content.bodytext.RTEfullScreenWidth= 100%

CSS-Auszug:

.zitat { font-style: italic; font-weight: bold; text-align: right; }
.zitat2 { font-style: italic; font-weight: bold; text-align: center; }
.ueberschrift { color: #004970; font-size: 12px; font-weight: bold; }
.highlight { font-weight: bold; color: #FFFFFF; background: #004970; }
.fett { font-weight: bold;}

span.zitat { font-style: italic; font-weight: bold; text-align: right; }
span.zitat2 { font-style: italic; font-weight: bold; text-align: center; }
span.ueberschrift { color: #004970; font-size: 12px; font-weight: bold; }
span.highlight { font-weight: bold; color: #FFFFFF; background: #004970; }
span.fett { font-weight: bold; }

p.zitat { font-style: italic; font-weight: bold; text-align: right; }
p.zitat2 { font-style: italic; font-weight: bold; text-align: center; }
p.ueberschrift { color: #004970; font-size: 12px; font-weight: bold; }
p.highlight { font-weight: bold; color: #FFFFFF; background: #004970; }
p.fett { font-weight: bold; }