Hallo Typo-Gemeinde,
ich kriege fast eine Kriese. Wenn ich im RTE Inhalte eingebe sieht das auch prima aus und bei der HTML-Ansicht (im RTE) ist auch der Quelltext o.k. - Aber im Frontend gibt Typo3 bei den Überschriften h1, h2... folgendes aus:
<a id="c27"></a><p style="margin:0 0 0 0;"><h2>Startseite</h2>
</p>
Mein css-Datei:
body { font-family: Arial, Helvetica, sans-serif;
font-size: 10pt;
font-weight: normal;
color: #555555
background-color: #FFFFE6;
}
.htmlarea-content-body {
font-family: Arial, Helvetica, sans-serif;
font-size:10pt;
color: #555555;
font-weight: normal;
background-color:#ffffe6;
}
td { font-family: Arial, Helvetica, sans-serif;
font-size: 10pt;
color: #555555
}
a {
color: #000082;
text-decoration: none
}
a:link {
color: ##000082;
text-decoration: none
}
a:hover { color: #FF0000; text-decoration: none}
h1 {
font-family: Arial, Helvetica, sans-serif;
font-size: 12pt;
font-weight: bold;
color: #005040
}
h2 {
font-family: Arial, Helvetica, sans-serif;
font-size: 10pt;
font-weight: bold;
color: #FFFFFF;
background-color: #005040;
padding-left: 5px
}
h4 { font-family: Arial, Helvetica, sans-serif;
font-size: 10pt;
color: #005040;
padding: 0px;
margin: 0px
}
h5 { font-family: Arial, Helvetica, sans-serif;
font-size: 7pt;
color: #005040;
padding: 0px;
margin: 0px }
h6 { font-family: Arial, Helvetica, sans-serif;
font-size: 7pt;
font-style: italic;
padding: 0px;
margin: 0px }
.Quelle {
font-size: 7pt
}
Meine RTE Konfiguration:
## *** Entfernt das Bild vor den Links
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 Konfiguration
RTE.default {
## Zuweisung der CSS-Datei
contentCSS = ../../fileadmin/style/style_rte.css
## Markup options
enableWordClean = 1
removeTrailingBR = 1
removeComments = 1
removeTags = center, sdfield
removeTagsAndContents = style,script
## Buttons die gezeigt/versteckt werden
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, fontstyle, formatblock, fontsize, strikethrough,lefttoright, righttoleft, textcolor, bgcolor, textindicator, emoticon, user, spellcheck, chMode, inserttag, outdent, indent, justifyfull, subscript, superscript, acronym, copy, cut, paste
hideButtons =
## Halt die RTE Icons gegroupt zusammen
keepButtonGroupTogether = 1
## blendet Statusbar in htmlarea aus
showStatusBar = 1
## Use stylesheet file rather than the above mainStyleOverride and inlineStyle properties to style the contents (htmlArea RTE only)
ignoreMainStyleOverride = 1
proc {
## tags die erlaubt / verboten sind
allowTags = table, tbody, tr, th, td, h1, h2, h3, h4, h5, h6, div, p, br, span, ul, ol, li, re, blockquote, strong, em, b, i, u, sub, sup, strike, a, img, nobr, hr, tt, q, cite, abbr, acronym, center
denyTags = font
## br wird nicht zu p konvertiert
dontConvBRtoParagraph = 1
## tags sind erlaubt au?erhalt von p, div
allowTagsOutside = img,hr
## erlaubte attribute in p, div tags
keepPDIVattribs = align,class,id
## List all class selectors that are allowed on the way to the database
allowedClasses (
external-link, external-link-new-window, internal-link, internal-link-new-window, download, mail,
align-left, align-center, align-right, author
)
## html parser einstellungen
HTMLparser_rte {
## tags die erlaubt/verboten sind
allowTags < RTE.default.proc.allowTags
denyTags < RTE.default.proc.denyTags
## tags die untersagt sind
removeTags = font
## entfernt html-kommentare
removeComments = 1
## tags die nicht ubereinstimmen werden nicht entfernt (protect / 1 / 0)
keepNonMatchedTags = 0
}
## Content to database
entryHTMLparser_db = 1
entryHTMLparser_db {
# tags die erlaubt/verboten sind
allowTags < RTE.default.proc.allowTags
denyTags < RTE.default.proc.denyTags
# CLEAN TAGS
noAttrib = b, i, u, strike, sub, sup, strong, em, quote, blockquote, cite, tt, br, center
rmTagIfNoAttrib = span,div,font
htmlSpecialChars = 1
## align attribute werden erlaubt
tags {
p.fixAttrib.align.unset >
p.allowedAttribs = class,style,align
div.fixAttrib.align.unset >
hr.allowedAttribs = class
## b und i tags werden ersetzt (em / strong)
b.remap = strong
i.remap = em
## img tags werden erlaubt
img >
}
}
}
## Classes: Ausrichtung
classesParagraph (
align-left, align-center, align-right
)
## Classes fur Links (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
}
## zeigt alle CSS-Klassen die in style_rte.css vorhanden sind
showTagFreeClasses = 1
## Do not allow insertion of the following tags
hideTags = font
## Tabellen Optionen in der RTE Toolbar
hideTableOperationsInToolbar = 0
keepToggleBordersInToolbar = 1
## Tabellen Editierungs-Optionen (cellspacing/ cellpadding / border)
disableSpacingFieldsetInTableOperations = 1
disableAlignmentFieldsetInTableOperations=1
disableColorFieldsetInTableOperations=1
disableLayoutFieldsetInTableOperations=1
disableBordersFieldsetInTableOperations=0
}
## Use same processing as on entry to database to clean content pasted into the editor
RTE.default.enableWordClean.HTMLparser < RTE.default.proc.entryHTMLparser_db
## FE RTE configuration (htmlArea RTE only)
RTE.default.FE < RTE.default
RTE.default.FE.userElements >
RTE.default.FE.userLinks >
## Breite des RTE in Fullscreen-Ansicht
TCEFORM.tt_content.bodytext.RTEfullScreenWidth= 100%
Hat da irgend jemand eine Idee, ich bin für jede Hilfe dankbar!
Grüße biker5