---
title: "htmlarea: color, font, size, strikethru werden mal wieder nicht gespeichert"
url: "https://www.typo3.net/d/47099-htmlarea-color-font-size-strikethru-werden-mal-wieder-nicht-gespeichert"
source: "typo3.net"
tags: ["Backend","RTE & CKEditor","Frage","TYPO3 4"]
created: "2006-07-26"
last_reply: "2006-10-16"
replies: 2
solved: false
page: 1
pages: 1
lang: "de"
---

# htmlarea: color, font, size, strikethru werden mal wieder nicht gespeichert

Backend › RTE & CKEditor · 2 Antworten · gestartet 2006-07-26

## Eröffnungsbeitrag

**mediaman** · 2006-07-26 · [Beitrag #1](https://www.typo3.net/d/47099-htmlarea-color-font-size-strikethru-werden-mal-wieder-nicht-gespeichert/1)

Hi Leute, ich bin echt am verzweifeln.

Ich habe heute an der Konfiguration vom htmlarea-Editor rumgespielt, weil ich eigentlich nur erreichen wollte, dass ich eine größere Schrift als 36pt verwenden kann. Dafür habe ich eine CSS-Klasse in den htmlarea eingefügt, was dann auch irgendwann funktionierte, aber auf einmal ging die Farbe, Schriftart und Schriftgröße nicht mehr. Ich suche nun schon Stunden nach dem Fehler. Nun bin ich soweit, dass ich alles wieder rückgängig gemacht habe (also das mit der CSS-Klasse), aber der Fehler besteht immer noch. Ich muss da irgendetwas übersehen. Würdet ihr hier mal drüber schauen, ob euch etwas auffällt? Ich ärgere mich zu tiefst, da es ja schon funktioniert hat…

Der Fehler tritt so auf, dass alles hübsch im Editor mit den Formatierungen angezeigt wird, dann drücke ich auf speichern und alles ist weg (, also unformatiert). Ich habe schon gegooglt und hier die Such genutzt und es gibt auch einiges dazu. Da habe ich auch eine Menge ausprobiert, aber ich muss irgendwas anderes übersehen….

Also, ich möchte es ohne CSS Klassen machen, aber so dass der Rest funktioniert. Dafür gibt es, soweit ich weiß, keine Beispielkonfiguration...

```typoscript
#Dieser Abschnitt sollte völlig egal sein, da habe ich gar nichts dran geändert

RTE.classesAnchor {

        internalLink {

                class = internal-link

                type = page

                image > #= fileadmin/template/sonstiges/BU_weiter.gif

        }

        internalLinkInNewWindow {

                class = internal-link

                type =  page

                image > #= fileadmin/template/sonstiges/BU_weiter.gif

        }

        externalLink {

                class = external-link

                type = url

                image >

        }

        externalLinkInNewWindow {

                class = external-link-new-window

                type = url

                image >

        }

}

 

#Hier habe ich dran rumgespielt, besonders showButtons, showTagFreeClasses und ignoreMainStyleOverride

RTE.default {

        # Buttons die gezeigt/versteckt werden

        showButtons = bold, italic, underline, 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, copy, cut, paste, fontsize, textcolor, fontstyle, left, center, right


        hideButtons =  strikethrough, lefttoright, righttoleft, bgcolor, textindicator, emoticon, user, spellcheck, chMode, inserttag, outdent, indent, justifyfull, subscript, superscript, acronym, formatblock, blockstyle, blockstylelabel, textstyle, textstylelabel

 
  removeTags =

  removeTagsAndContents =

  hideTags =

 

  ignoreMainStyleOverride = 0

 

}

 

 

RTE.default.proc {

 

 

#- TAGS ALLOWED OUTSIDE P & DIV

allowTagsOutside =  img,hr,cite

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

 

denyTags =

 

#Das brauche ich damit Fontsize genommen wird, aber das funktioniert nicht mehr. Und in den folgenden Abschnitten habe ich so ziemlich alles mal ausprobiert…

#HTMLparser_rte = 1

HTMLparser_rte {

                allowTags < RTE.default.proc.allowTags

                denyTags < RTE.default.proc.denyTags

                removeTags =

}

 

entryHTMLparser_db = 1

#Das brauche ich damit Align genommen wird...

entryHTMLparser_db.tags {

                        p.fixAttrib.align.unset >

                        div.fixAttrib.align.unset >

                        p.allowedAttribs = class, style, align

                        span.fixAttrib.style.unset >

                #- Allow img tags

                img >

            }

}
```

Bitte helft mir…

Gruß,

Michael

## Antworten

### [#2](https://www.typo3.net/d/47099-htmlarea-color-font-size-strikethru-werden-mal-wieder-nicht-gespeichert/2) · mediaman · 2006-07-26

Ich weiß nicht was falsch war, aber ich kenne nun einen guten Weg das Ding zu konfigurieren.

Erstmal habe ich ein htmlarea downgrade auf 1.2 gemacht, weil beim installieren gemeckert wurde, dass mein Typo3 4.0 zu alt sei und dass htmlarea 1.4.1 mindestens Typo3 4.0 benötige???

Das hat aber nicht geholfen...

Zuerst habe ich dann meine RTE-Konfiguration in den Müll gehauen, da ich den Fehler einfach nicht gefunden habe....
Dann habe ich im Extension-Manager auf Demo umgestellt, da so alle Funktionen eingeschaltet sind und siehe da es funktioniert, aber mit zu vielen Funktionen. Danach habe ich mir die TS-Konf. für die Demoausstattung aus der Bedingungsanleitung vom htmlarea geholt und habe einfach alles auskommentiert, was ich nicht wollte und habe noch ein "hideButtons" hinzugefügt und es läuft...

Hier für alle die ohne CSS-Styles wie in Word arbeiten wollen:

```typoscript
	## Define labels and styles to be applied to class selectors in the interface of the RTE
	## Partial re-use of color scheme and frame scheme from CSS Styled Content extension
RTE.classes {
#	align-left {
#		name = LLL:EXT:rtehtmlarea/htmlarea/locallang_tooltips.xml:justifyleft
#		value = text-align: left;
#	}
#	align-center {
#		name = LLL:EXT:rtehtmlarea/htmlarea/locallang_tooltips.xml:justifycenter
#		value = text-align: center;
#	}
#	align-right {
#		name = LLL:EXT:rtehtmlarea/htmlarea/locallang_tooltips.xml:justifyright
#		value = text-align: right;
#	}
#	csc-frame-frame1 {
#		name = LLL:EXT:rtehtmlarea/htmlarea/plugins/DynamicCSS/locallang.xml:frame-frame1
#		value = background-color: #EDEBF1; border: 1px solid #333333;
#	}
#	csc-frame-frame2 {
#		name = LLL:EXT:rtehtmlarea/htmlarea/plugins/DynamicCSS/locallang.xml:frame-frame2
#		value = background-color: #F5FFAA; border: 1px solid #333333;
#	}
#	important {
#		name = LLL:EXT:rtehtmlarea/htmlarea/plugins/DynamicCSS/locallang.xml:important
#		value = color: #8A0020;
#	}
#	name-of-person {
#		name = LLL:EXT:rtehtmlarea/htmlarea/plugins/DynamicCSS/locallang.xml:name-of-person
#		value = color: #10007B;
#	}
#	detail {
#		name = LLL:EXT:rtehtmlarea/htmlarea/plugins/DynamicCSS/locallang.xml:detail
#		value = color: #186900;
#	}
#	component-items {
#		name = LLL:EXT:rtehtmlarea/htmlarea/plugins/DynamicCSS/locallang.xml:component-items
#		value = color: #186900;
#	}
#	action-items {
#		name = LLL:EXT:rtehtmlarea/htmlarea/plugins/DynamicCSS/locallang.xml:action-items
#		value = color: #8A0020;
#	}
#	component-items-ordered {
#		name = LLL:EXT:rtehtmlarea/htmlarea/plugins/DynamicCSS/locallang.xml:component-items
#		value = color: #186900;
#	}
#	action-items-ordered {
#		name = LLL:EXT:rtehtmlarea/htmlarea/plugins/DynamicCSS/locallang.xml:action-items
#		value = color: #8A0020;
#	}
}

	## Anchor classes configuration for use by the anchor accessibility feature (htmlArea RTE only)
RTE.classesAnchor {
	externalLink {
		class = external-link
		type = url
		image = EXT:rtehtmlarea/htmlarea/plugins/TYPO3Browsers/img/external_link.gif
		altText = LLL:EXT:rtehtmlarea/htmlarea/plugins/TYPO3Browsers/locallang.xml:external_link_altText
		titleText = LLL:EXT:rtehtmlarea/htmlarea/plugins/TYPO3Browsers/locallang.xml:external_link_titleText
	}
	externalLinkInNewWindow {
		class = external-link-new-window
		type = url
		image = EXT:rtehtmlarea/htmlarea/plugins/TYPO3Browsers/img/external_link_new_window.gif
		altText = LLL:EXT:rtehtmlarea/htmlarea/plugins/TYPO3Browsers/locallang.xml:external_link_new_window_altText
		titleText = LLL:EXT:rtehtmlarea/htmlarea/plugins/TYPO3Browsers/locallang.xml:external_link_new_window_titleText
	}
	internalLink {
		class = internal-link
		type = page
		image >#= EXT:rtehtmlarea/htmlarea/plugins/TYPO3Browsers/img/internal_link.gif
		altText = LLL:EXT:rtehtmlarea/htmlarea/plugins/TYPO3Browsers/locallang.xml:internal_link_altText
		titleText = LLL:EXT:rtehtmlarea/htmlarea/plugins/TYPO3Browsers/locallang.xml:internal_link_titleText
	}
	internalLinkInNewWindow {
		class = internal-link-new-window
		type = page
		image >#= EXT:rtehtmlarea/htmlarea/plugins/TYPO3Browsers/img/internal_link_new_window.gif
		altText = LLL:EXT:rtehtmlarea/htmlarea/plugins/TYPO3Browsers/locallang.xml:internal_link_new_window_altText
		titleText = LLL:EXT:rtehtmlarea/htmlarea/plugins/TYPO3Browsers/locallang.xml:internal_link_new_window_titleText
	}
	download {
		class = download
		type = file
		image = EXT:rtehtmlarea/htmlarea/plugins/TYPO3Browsers/img/download.gif
		altText = LLL:EXT:rtehtmlarea/htmlarea/plugins/TYPO3Browsers/locallang.xml:download_altText
		titleText = LLL:EXT:rtehtmlarea/htmlarea/plugins/TYPO3Browsers/locallang.xml:download_titleText
	}
	mail {
		class = mail
		type = mail
		image = EXT:rtehtmlarea/htmlarea/plugins/TYPO3Browsers/img/mail.gif
		altText = LLL:EXT:rtehtmlarea/htmlarea/plugins/TYPO3Browsers/locallang.xml:mail_altText
		titleText = LLL:EXT:rtehtmlarea/htmlarea/plugins/TYPO3Browsers/locallang.xml:mail_titleText
	}
}

	## Default RTE configuration
RTE.default {
		## Markup options (htmlArea RTE only)
	enableWordClean = 1
	removeTrailingBR = 1
	removeComments = 1
	removeTags = center, o:p, sdfield
	removeTagsAndContents = style,script

		## Allow img tags
	proc.entryHTMLparser_db.tags.img >

		## Allow align and style attributes on p and span tags
	proc.entryHTMLparser_db.tags {
		p.fixAttrib.align.unset >
		div.fixAttrib.align.unset >
		p.allowedAttribs = class,style,align
		span.fixAttrib.style.unset >
	}

		## Toolbar options
	showButtons = *

		## More toolbar options (htmlArea RTE only)
	keepButtonGroupTogether = 1

		## Enable status bar (htmlArea RTE only)
	showStatusBar =  1

		## Add default example styles
		## Left, center and right alignment of text in paragraphs and cells.
#	inlineStyle.text-alignment (
#		p.align-left, h1.align-left, h2.align-left, h3.align-left, h4.align-left, h5.align-left, h6.align-left, td.align-left { text-align: left; }
#		p.align-center, h1.align-center, h2.align-center, h3.align-center, h4.align-center, h5.align-center, h6.align-center, td.align-center { text-align: center; }
#		p.align-right, h1.align-right, h2.align-right, h3.align-right, h4.align-right, h5.align-right, h6.align-right, td.align-right { text-align: right; }
#	)
#		## Two frame examples taken from the example CSS file of CSS Styled Content extension and applied to p and table block elements.
#	inlineStyle.frames (
#		p.csc-frame-frame1, table.csc-frame-frame1 { background-color: #EDEBF1; padding: 2px 4px 2px 4px; border: 1px solid #333333; }
#		p.csc-frame-frame2, table.csc-frame-frame2 { background-color: #F5FFAA; padding: 2px 4px 2px 4px; border: 1px solid #333333; }
#	)
#		## Bullet styles for unordered lists.
#	inlineStyle.ul (
#		ul.component-items { color: #186900; list-style-type: circle; }
#		ul.action-items { color: #8A0020; list-style-image: url(img/red_arrow_bullet.gif); }
#	)
#		## Numbering styles for ordered lists.
#	inlineStyle.ol (
#		ol.component-items-ordered { color: #10007B; list-style-type: lower-roman; }
#		ol.action-items-ordered { color: #8A0020; list-style-type: lower-greek; }
#	)
#		## Three inline text colors taken from the color scheme of CSS Styled Content extension.
#	inlineStyle.inline-text (
#		span.important { color: #8A0020; }
#		span.name-of-person { color: #10007B; }
#		span.detail { color: #186900; }
#	)

		## Use stylesheet file rather than the above mainStyleOverride and inlineStyle properties to style the contents (htmlArea RTE only)
	ignoreMainStyleOverride = 1

		## For this demo, do not remove font, strike and u tags
	proc.entryHTMLparser_db.removeTags := removeFromList(font,strike,u)
	
		## List all class selectors that are allowed on the way to the database
#	proc.allowedClasses (
#		external-link, external-link-new-window, internal-link, internal-link-new-window, download, mail,
#		align-left, align-center, align-right,
#		csc-frame-frame1, csc-frame-frame2,
#		component-items, action-items,
#		component-items-ordered, action-items-ordered,
#		important, name-of-person, detail
#	)

		## classesParagraph, classesTable, classesTD, classesLinks, classesCharacter
		## Classic RTE: Specify the list of class selectors that should be presented in the RTE interface:
		## htmlArea RTE: Restrict the list of class selectors presented by the RTE to the following:
#	classesParagraph (
#		align-left, align-center, align-right, 
#		csc-frame-frame1, csc-frame-frame2
#	)
#	classesTable = csc-frame-frame1, csc-frame-frame2
#	classesTD = align-left, align-center, align-right
#	classesLinks = external-link, external-link-new-window, internal-link, internal-link-new-window, download, mail
#	classesCharacter = important, name-of-person, detail

		## Configuration of the anchor accessibility feature (htmlArea RTE only)
		## These classes should also be in the list of allowedClasses.
	classesAnchor = external-link, external-link-new-window, internal-link, internal-link-new-window, download, mail
	classesAnchor.default {
		page = internal-link
		url = external-link-new-window
		file = download
		mail = mail
	}

		## Show all applicable class selectors available in the style sheet file (htmlArea RTE only)
	showTagFreeClasses = 1

		## Configuration specific to the table button or TableOperations feature (htmlArea RTE only)
		## Use the context menu instead of the toolbar for table operations, but keep toggleborders button in toolbar
	hideTableOperationsInToolbar = 1
	buttons.toggleborders.keepInToolbar = 1

		## Configuration specific to the inserttag button or QuickTag feature (htmlArea RTE only)
		## Do not allow insertion of the following tags
	buttons.inserttag.denyTags = font, underline, strike, table

		## Configuration specific to the spellcheck button or SpellCheck feature (htmlArea RTE only)
		## Enable the use of personal dictionaries
	enablePersonalDicts = 1

                ## Welche Buttons sind zu sehen und welche nicht
       #showButtons = bold, italic, underline, 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, copy, cut, paste, left, center, right, justifyfull, outdent, indent, strikethrough, fontsize, textcolor, fontstyle
       hideButtons =  lefttoright, righttoleft, bgcolor, textindicator, emoticon, user, spellcheck, chMode, inserttag, subscript, superscript, acronym, formatblock, blockstyle, blockstylelabel, textstyle, textstylelabel
}

	## Use same processing as on entry to database to clean content pasted into the editor
RTE.default.enableWordClean.HTMLparser < RTE.default.proc.entryHTMLparser_db

	## front end RTE configuration (htmlArea RTE only)
RTE.default.FE < RTE.default
RTE.default.FE.userElements >
RTE.default.FE.userLinks >

	## tt_content TCEFORM configuration
	## Let use all the space available for more comfort.
TCEFORM.tt_content.bodytext.RTEfullScreenWidth= 100%
```

### [#3](https://www.typo3.net/d/47099-htmlarea-color-font-size-strikethru-werden-mal-wieder-nicht-gespeichert/3) · eskey · 2006-10-16

Mediaman, du bist echt ein super typo3 Programmierer! Das mein ich ehrlich, hab jetzt schon relativ lange mit htmlArea kämpft und die abenteuerlichsten Konfigurationen probiert. Aber deine funktioniert ausnahmsweise mal. Ich werd versuchen noch meine stylesheet datei anzuhängen, ein paar Buttons zu modifizieren und dann bin ich zufrieden ;)

Danke nochmal :)

---

Quelle: „htmlarea: color, font, size, strikethru werden mal wieder nicht gespeichert“, typo3.net, https://www.typo3.net/d/47099-htmlarea-color-font-size-strikethru-werden-mal-wieder-nicht-gespeichert
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
